forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user