forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -912,8 +912,10 @@ QString QmakePriFile::varNameForAdding(const QString &mimeType)
|
||||
if (mimeType == QLatin1String(ProjectExplorer::Constants::FORM_MIMETYPE))
|
||||
return QLatin1String("FORMS");
|
||||
|
||||
if (mimeType == QLatin1String(ProjectExplorer::Constants::QML_MIMETYPE))
|
||||
if (mimeType == QLatin1String(ProjectExplorer::Constants::QML_MIMETYPE)
|
||||
|| mimeType == QLatin1String(ProjectExplorer::Constants::QMLUI_MIMETYPE)) {
|
||||
return QLatin1String("DISTFILES");
|
||||
}
|
||||
|
||||
if (mimeType == QLatin1String(ProjectExplorer::Constants::SCXML_MIMETYPE))
|
||||
return QLatin1String("STATECHARTS");
|
||||
|
||||
Reference in New Issue
Block a user