QQuickLineControl more robust on input method & selection state
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>
Tue, 13 Dec 2011 13:47:51 +0000 (15:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Dec 2011 11:40:31 +0000 (12:40 +0100)
commit0332e605f916ff67ce579172e857e457e8ea3e41
tree6ea0ea3a6cf635169932e08b60fb72c7369f80a9
parentb899758264bc29ecc80e04d4fbbe1832f01a9a08
QQuickLineControl more robust on input method & selection state

Input method event having replacement information out of bounds
left the controller in selection state when it shouldn't be.
Also now more liberal on accepted events. We cannot detect if input
method is confused for replacement inside boundaries, but going beyond
the end is more likely to be meant to replace until the end than to
leave previous text in addition to the new one.

Change-Id: I485009ac682c11876b39f7e22d7dfb91a6d162fe
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
src/quick/items/qquicktextinput.cpp
tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp