QmlDesigner.Rewriter: Add QQmlComponent to isComponentType()

The <cpp> prefix is not always there.

Change-Id: Ibf8485c91dc98a02d9f750ac37b787c3eb9de711
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Thomas Hartmann
2016-07-12 16:23:22 +02:00
parent a5cc7e3c7b
commit 0016d54ee3

View File

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