diff --git a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp index 661af4781aa..61f8d5e0c3e 100644 --- a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp @@ -288,11 +288,8 @@ bool isListElementType(const QmlDesigner::TypeName &type) bool isComponentType(const QmlDesigner::TypeName &type) { - return type == "Component" - || type == "Qt.Component" - || type == "QtQuick.Component" - || type == ".QQmlComponent" - || type == "QQmlComponent"; + return type == "Component" || type == "Qt.Component" || type == "QtQuick.Component" + || type == "QtQml.Component" || type == ".QQmlComponent" || type == "QQmlComponent"; } bool isCustomParserType(const QmlDesigner::TypeName &type)