forked from qt-creator/qt-creator
CppTools: move locators ownership to ModelManager
Move locator and find filters ownership and initialization to ModelManager. Initialize builtin filters by default and provide methods to set them from plugins. Change-Id: I4cc82ecff3415329a5f97b1be9dcc45e6103bf5a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -34,8 +34,6 @@
|
||||
|
||||
#include <QHash>
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
namespace Internal {
|
||||
@@ -46,9 +44,9 @@ class CppLocatorData : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
// Only one instance, created by the CppToolsPlugin.
|
||||
// Only one instance, created by the CppModelManager.
|
||||
CppLocatorData();
|
||||
friend class Internal::CppToolsPlugin;
|
||||
friend class Internal::CppModelManagerPrivate;
|
||||
|
||||
public:
|
||||
void filterAllFiles(IndexItem::Visitor func) const
|
||||
|
||||
Reference in New Issue
Block a user