summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuomas Heimonen <tuomas.heimonen@theqtcompany.com>2016-06-15 14:56:17 +0300
committerTuomas Heimonen <tuomas.heimonen@theqtcompany.com>2016-06-15 12:22:14 +0000
commit196a2a789e35491b72ae6a722b927576a00934c7 (patch)
tree0bd3ffb219f2018b931254bb54534a791b997956 /src
parent20cb55115e5cd6f63c34fb1183a63c1cadd64fe0 (diff)
downloadqtquickcontrols-196a2a789e35491b72ae6a722b927576a00934c7.tar.gz
ComboBox: update selectedText when model is changed
When QML ComboBox's model is changed and currentIndex has not been changed, selectedText is now updated correctly. Task-number: QTBUG-53921 Change-Id: I778d196b3c69a29928bace9fd54b4118f0c78e9f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/controls/ComboBox.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 1b92a1ef..b6f4d82e 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -616,6 +616,7 @@ Control {
activated(index)
comboBox.editText = text
}
+ onTextChanged: if (index === currentIndex) popup.updateSelectedText();
checkable: true
exclusiveGroup: eg
}