From f6511fb29d21438311263dc9d0d7e4e9a0a93dd3 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 30 Aug 2021 20:00:12 +0200 Subject: [PATCH] QmlDesigner: Fix Model The correct type in Qt 6 is QtQml.Models.ListModel Change-Id: Ic6e488eea1feef150bb49d0d4f873f6bd5bac3c5 Reviewed-by: Thomas Hartmann --- .../qmldesigner/designercore/model/texttomodelmerger.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp index f3fb6f5cfda..67ec00e1212 100644 --- a/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp +++ b/src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp @@ -329,10 +329,11 @@ bool isComponentType(const QmlDesigner::TypeName &type) bool isCustomParserType(const QmlDesigner::TypeName &type) { - return type == "QtQuick.VisualItemModel" || type == "Qt.VisualItemModel" || - type == "QtQuick.VisualDataModel" || type == "Qt.VisualDataModel" || - type == "QtQuick.ListModel" || type == "Qt.ListModel" || - type == "QtQuick.XmlListModel" || type == "Qt.XmlListModel"; + return type == "QtQuick.VisualItemModel" || type == "Qt.VisualItemModel" + || type == "QtQuick.VisualDataModel" || type == "Qt.VisualDataModel" + || type == "QtQuick.ListModel" || type == "Qt.ListModel" + || type == "QtQml.Models.ListModel" || type == "QtQuick.XmlListModel" + || type == "Qt.XmlListModel"; }