From 0016d54ee3a51d4cbc8c618ebc12185224b64a10 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 12 Jul 2016 16:23:22 +0200 Subject: [PATCH] QmlDesigner.Rewriter: Add QQmlComponent to isComponentType() The prefix is not always there. Change-Id: Ibf8485c91dc98a02d9f750ac37b787c3eb9de711 Reviewed-by: Tim Jenssen --- .../qmldesigner/designercore/model/texttomodelmerger.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp index a4914e17993..507452b660d 100644 --- a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp @@ -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 == ".QQmlComponent"; + return type == "Component" + || type == "Qt.Component" + || type == "QtQuick.Component" + || type == ".QQmlComponent" + || type == "QQmlComponent"; } static bool isCustomParserType(const QmlDesigner::TypeName &type)