diff options
Diffstat (limited to 'src/plugins/coreplugin/locator/opendocumentsfilter.h')
-rw-r--r-- | src/plugins/coreplugin/locator/opendocumentsfilter.h | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/src/plugins/coreplugin/locator/opendocumentsfilter.h b/src/plugins/coreplugin/locator/opendocumentsfilter.h index 537bdd45a5a..94306d0515c 100644 --- a/src/plugins/coreplugin/locator/opendocumentsfilter.h +++ b/src/plugins/coreplugin/locator/opendocumentsfilter.h @@ -5,46 +5,15 @@ #include "ilocatorfilter.h" -#include <coreplugin/editormanager/documentmodel.h> - -#include <QFutureInterface> -#include <QList> -#include <QMutex> -#include <QString> - -namespace Core { -namespace Internal { +namespace Core::Internal { class OpenDocumentsFilter : public ILocatorFilter { - Q_OBJECT - public: OpenDocumentsFilter(); - QList<LocatorFilterEntry> matchesFor(QFutureInterface<LocatorFilterEntry> &future, - const QString &entry) override; - void accept(const LocatorFilterEntry &selection, - QString *newText, int *selectionStart, int *selectionLength) const override; - -public slots: - void slotDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, - const QVector<int> &roles); - void slotRowsInserted(const QModelIndex &, int first, int last); - void slotRowsRemoved(const QModelIndex &, int first, int last); private: - class Entry - { - public: - Utils::FilePath fileName; - QString displayName; - }; - - QList<Entry> editors() const; - - mutable QMutex m_mutex; - QList<Entry> m_editors; + LocatorMatcherTasks matchers() final; }; -} // namespace Internal -} // namespace Core +} // namespace Core::Internal |