forked from qt-creator/qt-creator
qmljs: differnt language constants for the different qml flavors
Added separated qbs, qmltypes, QtQuick1, and QtQuick2 and "generic" Qml languages. Cleaned up the mime types a bit, preparing for registered mime types. Change-Id: I0e484c93e003176cd659acc546baa6d024defa19 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -796,7 +796,8 @@ FileType typeForFileName(const Core::MimeDatabase *db, const QFileInfo &file)
|
||||
return ResourceType;
|
||||
if (typeName == QLatin1String(Constants::FORM_MIMETYPE))
|
||||
return FormType;
|
||||
if (typeName == QLatin1String(Constants::QML_MIMETYPE))
|
||||
if (mt.subClassesOf().contains(QLatin1String(Constants::QML_MIMETYPE))
|
||||
|| typeName == QLatin1String(Constants::QML_MIMETYPE))
|
||||
return QMLType;
|
||||
return UnknownFileType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user