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:
Ivan Donchevskii
2017-09-29 14:41:09 +02:00
parent 58494877fd
commit 7666db896d
4 changed files with 131 additions and 46 deletions

View File

@@ -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