Commit b70081ae authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

QtSupport: Register mimetype for qm and ts files

ts appears in freedesktop, but it is ambiguous.

Change-Id: Iacc1386551f79eb885c03db7329f592394428f66
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 4829e946
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-linguist-translation">
<comment>Linguist translated messages (machine-readable)</comment>
<glob pattern="*.qm"/>
</mime-type>
<mime-type type="application/x-linguist">
<comment>Linguist message catalog</comment>
<magic>
<match value="&lt;TS" type="string" offset="0:256"/>
</magic>
<glob pattern="*.ts" weight="70"/>
</mime-type>
</mime-info>
......@@ -8,5 +8,6 @@
<file>images/dark_qml.png</file>
<file>images/dark_qt_project.png</file>
<file>images/dark_qt_qrc.png</file>
<file>QtSupport.mimetypes.xml</file>
</qresource>
</RCC>
......@@ -50,7 +50,9 @@
#include <projectexplorer/project.h>
#include <projectexplorer/projecttree.h>
#include <projectexplorer/target.h>
#include <utils/macroexpander.h>
#include <utils/mimetypes/mimedatabase.h>
#include <QtPlugin>
......@@ -69,6 +71,8 @@ bool QtSupportPlugin::initialize(const QStringList &arguments, QString *errorMes
ProFileEvaluator::initialize();
new ProFileCacheManager(this);
Utils::MimeDatabase::addMimeTypes(QLatin1String(":qtsupport/QtSupport.mimetypes.xml"));
JsExpander::registerQObjectForJs(QLatin1String("QtSupport"), new CodeGenerator);
addAutoReleasedObject(new QtVersionManager);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment