diff options
author | Fawzi Mohamed <[email protected]> | 2013-05-29 14:04:33 +0200 |
---|---|---|
committer | Fawzi Mohamed <[email protected]> | 2013-05-30 15:45:26 +0200 |
commit | 271a96b19a17083d2cd7d2350aa83d3c11b462d3 (patch) | |
tree | 9a6fbf606c6b8a370883fd5f16988d117a6f85be /src/plugins/qmljstools/qmljstoolsplugin.cpp | |
parent | e7f9a209ea4517ecb86d6a808e758353695e3dea (diff) |
qmljs: moving all mime types into qmljstools
This reduces uneeded dependencies for modules that need the types
like the qbs module.
Change-Id: I59a6067a4c24a6d0401bf57fdfa8f5dc1f03595c
Reviewed-by: Kai Koehne <[email protected]>
Reviewed-by: Tobias Hunger <[email protected]>
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/qmljstools/qmljstoolsplugin.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljstoolsplugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/qmljstools/qmljstoolsplugin.cpp b/src/plugins/qmljstools/qmljstoolsplugin.cpp index 0d2889019c0..50d76d84276 100644 --- a/src/plugins/qmljstools/qmljstoolsplugin.cpp +++ b/src/plugins/qmljstools/qmljstoolsplugin.cpp @@ -41,6 +41,7 @@ #include <coreplugin/coreconstants.h> #include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actioncontainer.h> +#include <coreplugin/mimedatabase.h> #include <coreplugin/progressmanager/progressmanager.h> #include <QtPlugin> @@ -72,6 +73,10 @@ bool QmlJSToolsPlugin::initialize(const QStringList &arguments, QString *error) Q_UNUSED(arguments) Q_UNUSED(error) + if (!Core::ICore::mimeDatabase() + ->addMimeTypes(QLatin1String(":/qmljstools/QmlJSTools.mimetypes.xml"), error)) + return false; + m_settings = new QmlJSToolsSettings(this); // force registration of qmljstools settings // Objects |