From 1278473e6920513df1478dc6c9e9b4cdd142c9b6 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 11 Mar 2025 14:11:15 +0200 Subject: [PATCH] QmlDesigner: Remove textRole workaround from EdittableListView Workaround is no longer needed as proper specifics are already in currently supported Qt kits. Change-Id: I3f67e8716c2cf2c217319d3e61728fca246e073f Reviewed-by: Mahmoud Badri --- .../imports/HelperWidgets/EditableListView.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml index b2f0498dc06..21271ae1ef0 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/EditableListView.qml @@ -24,9 +24,7 @@ Item { property real __actionIndicatorWidth: StudioTheme.Values.squareComponentWidth property real __actionIndicatorHeight: StudioTheme.Values.height property string typeFilter: "QtQuick3D.Material" - // This binding is a workaround to overcome the rather long adaption to new Qt versions. This - // should actually be fixed in the ModelSection.qml by setting the textRole: "idAndName". - property string textRole: (root.typeFilter === "QtQuick3D.Material") ? "idAndName" : "id" + property string textRole: "id" property string valueRole: "id" property int activatedReason: ComboBox.ActivatedReason.Other