forked from qt-creator/qt-creator
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:
committed by
Marco Bubke
parent
06ea162713
commit
f6511fb29d
@@ -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";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user