ComboBox: Minimize currentText changes when changing model
authorGabriel de Dietrich <gabriel.dedietrich@digia.com>
Thu, 24 Oct 2013 16:00:22 +0000 (18:00 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 25 Oct 2013 10:58:15 +0000 (12:58 +0200)
commit2f77a972eafacebcc5a44204dbf577258de1c4a1
tree3e04628adf8dd7cada5098bc9ae300c79f11f3f7
parent29d771e2ac808750a6d8fa2225a848115af11d34
ComboBox: Minimize currentText changes when changing model

Bonus change, changing the model after its initial value will reset
currentIndex to 0.

test_arraymodelwithtextrole needs some rework. The issue relies on
textRole and model being set separately, and a late change to
__modelIsArray updating the currentText when it probably shouldn't.

[ChangeLog][QtQuick Controls][ComboBox]
Changing the model after initialization will reset currentIndex to 0

Change-Id: If6c0dee9e022036ef888f2aef87a5c405868684b
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
src/controls/ComboBox.qml
tests/auto/controls/data/tst_combobox.qml