From c9f5a14bdde5a9ba7cbdcddf6b7799abac32a5e2 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Fri, 6 Sep 2013 13:14:15 +0200 Subject: C++: add code-model settings to choose one by mime-type. The model-manager now supports multiple code models for semantic highlighting and code completion, and will choose one based on the mime-type of the editor. The settings page is currently disabled. It will get enabled when a second plug-in lands that has a ModelManagerSupport class. Change-Id: I10023f52322ed6860397da15dba1c231e80e6517 Reviewed-by: Nikolai Kosjar --- src/plugins/cpptools/cpptoolsplugin.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/cpptools/cpptoolsplugin.h') diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h index 05f37be6a4..4f7653ddaf 100644 --- a/src/plugins/cpptools/cpptoolsplugin.h +++ b/src/plugins/cpptools/cpptoolsplugin.h @@ -49,6 +49,7 @@ namespace Internal { class CppModelManager; struct CppFileSettings; +class CppCodeModelSettings; class CPPTOOLS_EXPORT CppToolsPlugin : public ExtensionSystem::IPlugin { @@ -68,6 +69,8 @@ public: void extensionsInitialized(); ShutdownFlag aboutToShutdown(); + QSharedPointer codeModelSettings() const; + public slots: void switchHeaderSource(); void switchHeaderSourceInNextSplit(); @@ -225,6 +228,7 @@ private: private: QSharedPointer m_fileSettings; + QSharedPointer m_codeModelSettings; CppToolsSettings *m_settings; }; -- cgit v1.2.1