From b2f3a7d7f93dae04923a906a3a44074b205798f5 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 8 May 2023 13:06:27 +0200 Subject: [PATCH] QmlDesigner: fix hardcoded types for Qt 6.5.1 Task-number: QDS-9737 Change-Id: I286d706b506904b4d6f22549d1ec294d16859df0 Reviewed-by: Tim Jenssen --- .../qmldesigner/designercore/model/texttomodelmerger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp index 493c834885a..96852a0212e 100644 --- a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp @@ -284,7 +284,7 @@ bool isComponentType(const QmlDesigner::TypeName &type) { return type == "Component" || type == "Qt.Component" || type == "QtQuick.Component" || type == "QtQml.Component" || type == ".QQmlComponent" || type == "QQmlComponent" - || type == "QML.Component"; + || type == "QML.Component" || type == "QtQml.Base.Component"; } bool isCustomParserType(const QmlDesigner::TypeName &type) @@ -304,7 +304,8 @@ bool isPropertyChangesType(const QmlDesigner::TypeName &type) bool isConnectionsType(const QmlDesigner::TypeName &type) { - return type == "Connections" || type == "QtQuick.Connections" || type == "Qt.Connections" || type == "QtQml.Connections"; + return type == "Connections" || type == "QtQuick.Connections" || type == "Qt.Connections" + || type == "QtQml.Connections" || type == "QtQml.Base.Connections"; } bool propertyIsComponentType(const QmlDesigner::NodeAbstractProperty &property, const QmlDesigner::TypeName &type, QmlDesigner::Model *model)