aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/fusion/ComboBox.qml
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2020-02-25 12:16:39 +0100
committerQt Cherry-pick Bot <cherrypickbot@codereview.qt-project.org>2020-07-30 13:12:07 +0000
commitb6dc9d05210a627a25f1ef05397e27a67c7f2f7c (patch)
tree8281b4c63b48f542528b19ae071fde15a4db3adc /src/imports/controls/fusion/ComboBox.qml
parent68244a85550efb1d0991375a7cf1f032e1ac5709 (diff)
Remove bindings to parent in delegates
Until we've decided whether to a) document that properties of parent should not be bound to in delegates or b) fix the warning that results from doing so after 8c72e634b3b0eacbfdee883bfc34994d3c19ed77, we can pre-emptively clean up a few places where it happens. Task-number: QTBUG-81976 Task-number: QTBUG-82393 Task-number: QTBUG-82989 Change-Id: I1e610613f6016ec1b9cf9ca33cdfb15d384731a8 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> (cherry picked from commit 456d26e97ec7745fdbd1afaaaa6c1dc217eca060) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/imports/controls/fusion/ComboBox.qml')
-rw-r--r--src/imports/controls/fusion/ComboBox.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/fusion/ComboBox.qml b/src/imports/controls/fusion/ComboBox.qml
index d8ef1888..5e26f90e 100644
--- a/src/imports/controls/fusion/ComboBox.qml
+++ b/src/imports/controls/fusion/ComboBox.qml
@@ -55,7 +55,7 @@ T.ComboBox {
rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
delegate: MenuItem {
- width: parent.width
+ width: ListView.view.width
text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
highlighted: control.highlightedIndex === index