diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-03-08 22:43:19 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-03-09 16:14:45 +0000 |
commit | c1ef8edaf9277f1076ba7c858f8a5535863abf88 (patch) | |
tree | e792266683f7e5d54bcd74b99b9ead8a1599dc99 /src/plugins/coreplugin/locator/opendocumentsfilter.h | |
parent | e8c8968ab6e060de7e80fabd1758eb3ea27eb531 (diff) |
Core: Use a document subclass for restored documents
Enables name disambiguation for restored documents as well as "real" ones.
Change-Id: Id9c97fa03647e2724612b732091fc92c183c1a17
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/locator/opendocumentsfilter.h')
-rw-r--r-- | src/plugins/coreplugin/locator/opendocumentsfilter.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/locator/opendocumentsfilter.h b/src/plugins/coreplugin/locator/opendocumentsfilter.h index d77a77ef4d..06008387e3 100644 --- a/src/plugins/coreplugin/locator/opendocumentsfilter.h +++ b/src/plugins/coreplugin/locator/opendocumentsfilter.h @@ -57,10 +57,17 @@ public slots: void refreshInternally(); private: - QList<DocumentModel::Entry> editors() const; + class Entry + { + public: + Utils::FileName fileName; + QString displayName; + }; + + QList<Entry> editors() const; mutable QMutex m_mutex; - QList<DocumentModel::Entry> m_editors; + QList<Entry> m_editors; }; } // namespace Internal |