summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolsplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-03-15 15:22:17 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-03-15 16:00:18 +0000
commit12889af047fb9275dbe83a0c872f5a44f694fb03 (patch)
tree85b0300b28e651cf10588c85e73946891d1750f6 /src/plugins/cpptools/cpptoolsplugin.cpp
parent2c60cb2e42290a49501267ec67890a35f0c5cda5 (diff)
downloadqt-creator-12889af047fb9275dbe83a0c872f5a44f694fb03.tar.gz
Move C++ mime types from cppeditor to cpptools
Have the mimetypes and their registration in the same plugin as their constants. Change-Id: I350ab4eb0da3941ca9282ff98d8d0e158b568ef3 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r--src/plugins/cpptools/cpptoolsplugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp
index 364ed06fba..6d25eade0b 100644
--- a/src/plugins/cpptools/cpptoolsplugin.cpp
+++ b/src/plugins/cpptools/cpptoolsplugin.cpp
@@ -140,6 +140,8 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error)
Q_UNUSED(arguments)
Q_UNUSED(error)
+ Utils::MimeDatabase::addMimeTypes(QLatin1String(":/cpptools/CppTools.mimetypes.xml"));
+
CppModelManager::instance()->setParent(this);
m_settings = new CppToolsSettings(this); // force registration of cpp tools settings