diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-23 11:47:39 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-26 14:07:35 +0100 |
commit | 271fb797cb77a39d59dc6930bd4dafea98a325bb (patch) | |
tree | a9a91ad373a7c130f3d0d132d1186ebe6173b05e /src/plugins/cpptools/cppmodelmanager.h | |
parent | 65942d2d8d7bb5597c749c8653055cef96c54a7e (diff) | |
download | qt-creator-271fb797cb77a39d59dc6930bd4dafea98a325bb.tar.gz |
Made symbol searching plug-able through indexing support.
The indexing support for the built-in code model is moved to its own
file. Symbol searching will now call for a searcher through that support
interface, which will create a fully configured and ready-to-go searcher
that can be started in the/a future.
Change-Id: Idc3ee1c7c789a69fa05ee1d42415313dcea94cf8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index fdc06e8bc0..557d1ffa6a 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -131,7 +131,8 @@ public: virtual CppHighlightingSupport *highlightingSupport(Core::IEditor *editor) const; virtual void setHighlightingSupportFactory(CppHighlightingSupportFactory *highlightingFactory); - virtual void addIndexingSupport(CppIndexingSupport *indexingSupport); + virtual void setIndexingSupport(CppIndexingSupport *indexingSupport); + virtual CppIndexingSupport *indexingSupport(); QStringList projectFiles() { @@ -243,7 +244,7 @@ private: CppCompletionAssistProvider *m_completionFallback; CppHighlightingSupportFactory *m_highlightingFactory; CppHighlightingSupportFactory *m_highlightingFallback; - QList<CppIndexingSupport *> m_indexingSupporters; + CppIndexingSupport *m_indexingSupporter; CppIndexingSupport *m_internalIndexingSupport; }; |