forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user