QmlDesigner: Add QtQml.Component as component type

Change-Id: Ief07ffc863de978b6082adfec3477b00a7309654
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2020-10-05 10:25:27 +02:00
parent b97b7dc6f2
commit e4b9ad289f

View File

@@ -288,11 +288,8 @@ bool isListElementType(const QmlDesigner::TypeName &type)
bool isComponentType(const QmlDesigner::TypeName &type) bool isComponentType(const QmlDesigner::TypeName &type)
{ {
return type == "Component" return type == "Component" || type == "Qt.Component" || type == "QtQuick.Component"
|| type == "Qt.Component" || type == "QtQml.Component" || type == "<cpp>.QQmlComponent" || type == "QQmlComponent";
|| type == "QtQuick.Component"
|| type == "<cpp>.QQmlComponent"
|| type == "QQmlComponent";
} }
bool isCustomParserType(const QmlDesigner::TypeName &type) bool isCustomParserType(const QmlDesigner::TypeName &type)