QmlDesigner: Fix Model

The correct type in Qt 6 is QtQml.Models.ListModel

Change-Id: Ic6e488eea1feef150bb49d0d4f873f6bd5bac3c5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-08-30 20:00:12 +02:00
committed by Marco Bubke
parent 06ea162713
commit f6511fb29d

View File

@@ -329,10 +329,11 @@ bool isComponentType(const QmlDesigner::TypeName &type)
bool isCustomParserType(const QmlDesigner::TypeName &type) bool isCustomParserType(const QmlDesigner::TypeName &type)
{ {
return type == "QtQuick.VisualItemModel" || type == "Qt.VisualItemModel" || return type == "QtQuick.VisualItemModel" || type == "Qt.VisualItemModel"
type == "QtQuick.VisualDataModel" || type == "Qt.VisualDataModel" || || type == "QtQuick.VisualDataModel" || type == "Qt.VisualDataModel"
type == "QtQuick.ListModel" || type == "Qt.ListModel" || || type == "QtQuick.ListModel" || type == "Qt.ListModel"
type == "QtQuick.XmlListModel" || type == "Qt.XmlListModel"; || type == "QtQml.Models.ListModel" || type == "QtQuick.XmlListModel"
|| type == "Qt.XmlListModel";
} }