Make editable Combobox accept substrings
authorJens Bache-Wiig <jens.bache-wiig@digia.com>
Wed, 11 Dec 2013 17:51:14 +0000 (18:51 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 13 Dec 2013 11:02:36 +0000 (12:02 +0100)
commit49a7f0b8e544fed6bf7811198d7696af8d7baba9
treef01c68e820ac899bf111f2cf2b2a95b6eab90438
parent29a362c1915f82e8eb89cf9788d2379acb67d24d
Make editable Combobox accept substrings

This fixes the issue that onAccepted would not update the currentText or
current index if  the string was a substring/partial match.

Note that the new internal MatchFixedString case matches the complete
string in a case insensitive way.

[ChangeLog][Qt Quick Controls][Editable Combobox would not update
currentText when accepting a substring of an existing value.]

Task-number: QTBUG-35521
Change-Id: Ied850208425ae71b2414f1abf9389e9a8ed50cfb
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/controls/ComboBox.qml
tests/auto/controls/data/tst_combobox.qml