summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppmodelmanager.cpp
diff options
context:
space:
mode:
authorFrancois Ferrand <thetypz@gmail.com>2014-09-15 11:13:36 +0200
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-10-23 13:39:02 +0200
commit7e544073c0cb2701e5ade0f579f4b6b80d6ec2ec (patch)
tree6478929bf17fec4f9b0423e5f781b301f9a78f20 /src/plugins/cpptools/cppmodelmanager.cpp
parenta645f78cd69860b57efba4c0a528fec234367327 (diff)
downloadqt-creator-7e544073c0cb2701e5ade0f579f4b6b80d6ec2ec.tar.gz
CppTools: restore C++ diagnostics messages.
The messages were computed, but not added to the document. Change-Id: Ibeea802cf9f291ad14b2fe2e9d2a285c927a4449 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.cpp')
-rw-r--r--src/plugins/cpptools/cppmodelmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp
index 1980bf8258..a07bf91238 100644
--- a/src/plugins/cpptools/cppmodelmanager.cpp
+++ b/src/plugins/cpptools/cppmodelmanager.cpp
@@ -307,6 +307,8 @@ CppModelManager::CppModelManager(QObject *parent)
this, SLOT(onCoreAboutToClose()));
qRegisterMetaType<CPlusPlus::Document::Ptr>("CPlusPlus::Document::Ptr");
+ qRegisterMetaType<QList<CPlusPlus::Document::DiagnosticMessage>>(
+ "QList<CPlusPlus::Document::DiagnosticMessage>");
d->m_modelManagerSupportFallback.reset(new ModelManagerSupportInternal);
CppToolsPlugin::instance()->codeModelSettings()->setDefaultId(