aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-10-17 18:53:28 +0200
committerUlf Hermann <ulf.hermann@qt.io>2017-10-18 08:11:42 +0000
commite902980ddeedce903c42cbf519382265670df9e3 (patch)
tree0ae3c10373d7bef76318439813ba8e984d9606ac /src/plugins/resourceeditor
parent371b2bbbab6b4bdc300ef7c3d4ce9c504ac25472 (diff)
Treat .ui.qml mime type the same as .qml
Right now, the qmake project manager offers a "Build" context menu entry for .ui.qml files and various other things are off because the mime types are different. Change-Id: Icc966e56513b9c5aed05f929dc8cb728ed408723 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r--src/plugins/resourceeditor/resourcenode.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp
index 0ca93ea5b5..003ac9354a 100644
--- a/src/plugins/resourceeditor/resourcenode.cpp
+++ b/src/plugins/resourceeditor/resourcenode.cpp
@@ -113,6 +113,7 @@ static bool hasPriority(const QStringList &files)
QString type = Utils::mimeTypeForFile(files.at(0)).name();
if (type.startsWith(QLatin1String("image/"))
|| type == QLatin1String(QmlJSTools::Constants::QML_MIMETYPE)
+ || type == QLatin1String(QmlJSTools::Constants::QMLUI_MIMETYPE)
|| type == QLatin1String(QmlJSTools::Constants::JS_MIMETYPE))
return true;
return false;