aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor/resourceeditorplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-02-08 14:31:55 +0100
committerEike Ziller <eike.ziller@qt.io>2017-02-27 13:54:59 +0000
commitd64e17ad55f155951fc76e4c2f04299aa9c7a912 (patch)
tree16890479318c917c88392035a461e9edbcf76621 /src/plugins/resourceeditor/resourceeditorplugin.cpp
parentca1d1dfbe2c2b046b5661de20da9e20d4b511680 (diff)
Move mimetype definitions to plugin specs
- Avoids the hassle of QRC files and manually registering mime types - Avoids performance regressions because of mime types that are registered after mime database has been used - Makes it technically possible to detect that a disabled plugin could handle a mime type if it was enabled Change-Id: I373008b1b56e9c6b4853055f20b3eeb112a6eff9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorplugin.cpp')
-rw-r--r--src/plugins/resourceeditor/resourceeditorplugin.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp
index 5dc8f83c54..21060c6ae7 100644
--- a/src/plugins/resourceeditor/resourceeditorplugin.cpp
+++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp
@@ -44,7 +44,6 @@
#include <projectexplorer/projectnodes.h>
#include <extensionsystem/pluginmanager.h>
-#include <utils/mimetypes/mimedatabase.h>
#include <utils/parameteraction.h>
#include <utils/qtcassert.h>
@@ -121,7 +120,6 @@ bool ResourceEditorPlugin::initialize(const QStringList &arguments, QString *err
{
Q_UNUSED(arguments)
Q_UNUSED(errorMessage)
- Utils::MimeDatabase::addMimeTypes(QLatin1String(":/resourceeditor/ResourceEditor.mimetypes.xml"));
ResourceEditorFactory *editor = new ResourceEditorFactory(this);
addAutoReleasedObject(editor);