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 <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2025-03-11 14:11:15 +02:00
parent 16bbb5f30f
commit 1278473e69

View File

@@ -24,9 +24,7 @@ Item {
property real __actionIndicatorWidth: StudioTheme.Values.squareComponentWidth property real __actionIndicatorWidth: StudioTheme.Values.squareComponentWidth
property real __actionIndicatorHeight: StudioTheme.Values.height property real __actionIndicatorHeight: StudioTheme.Values.height
property string typeFilter: "QtQuick3D.Material" property string typeFilter: "QtQuick3D.Material"
// This binding is a workaround to overcome the rather long adaption to new Qt versions. This property string textRole: "id"
// should actually be fixed in the ModelSection.qml by setting the textRole: "idAndName".
property string textRole: (root.typeFilter === "QtQuick3D.Material") ? "idAndName" : "id"
property string valueRole: "id" property string valueRole: "id"
property int activatedReason: ComboBox.ActivatedReason.Other property int activatedReason: ComboBox.ActivatedReason.Other