diff options
Diffstat (limited to 'src/plugins/projectexplorer/currentprojectfilter.h')
-rw-r--r-- | src/plugins/projectexplorer/currentprojectfilter.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/plugins/projectexplorer/currentprojectfilter.h b/src/plugins/projectexplorer/currentprojectfilter.h index b9d63db2930..6c500707907 100644 --- a/src/plugins/projectexplorer/currentprojectfilter.h +++ b/src/plugins/projectexplorer/currentprojectfilter.h @@ -3,31 +3,24 @@ #pragma once -#include <coreplugin/locator/basefilefilter.h> +#include <coreplugin/locator/ilocatorfilter.h> -#include <QFutureInterface> +namespace ProjectExplorer { class Project; } -namespace ProjectExplorer { +namespace ProjectExplorer::Internal { -class Project; - -namespace Internal { - -class CurrentProjectFilter : public Core::BaseFileFilter +class CurrentProjectFilter : public Core::ILocatorFilter { - Q_OBJECT - public: CurrentProjectFilter(); - void refresh(QFutureInterface<void> &future) override; - void prepareSearch(const QString &entry) override; private: + Core::LocatorMatcherTasks matchers() final { return {m_cache.matcher()}; } void currentProjectChanged(); - void markFilesAsOutOfDate(); + void invalidate() { m_cache.invalidate(); } + Core::LocatorFileCache m_cache; Project *m_project = nullptr; }; -} // namespace Internal -} // namespace ProjectExplorer +} // namespace ProjectExplorer::Internal |