diff options
author | Tuomas Heimonen <tuomas.heimonen@theqtcompany.com> | 2016-06-15 14:56:17 +0300 |
---|---|---|
committer | Tuomas Heimonen <tuomas.heimonen@theqtcompany.com> | 2016-06-15 12:22:14 +0000 |
commit | 196a2a789e35491b72ae6a722b927576a00934c7 (patch) | |
tree | 0bd3ffb219f2018b931254bb54534a791b997956 /src/controls/ComboBox.qml | |
parent | 20cb55115e5cd6f63c34fb1183a63c1cadd64fe0 (diff) | |
download | qtquickcontrols-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/controls/ComboBox.qml')
-rw-r--r-- | src/controls/ComboBox.qml | 1 |
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 } |