Fix validators not allowing backspace or delete.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 10 Jan 2012 06:51:22 +0000 (16:51 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Jan 2012 08:33:32 +0000 (09:33 +0100)
commit0cafd920cced1f726a8b6422b6fb496ecf846f34
tree894d968257397737786f8408bc46aaf499de5a23
parent9d73bf289e2719d781670baad1733989a56d7f40
Fix validators not allowing backspace or delete.

TextInput will allow non-valid changes to already invalid text, when
a validator is changed update the current validity so changes can
be made to bring the text back to a valid state.

Task-number: QTBUG-22080
Change-Id: I501961b473f58c317bce474b1df8d91fd1f967d4
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquicktextinput.cpp
src/quick/items/qquicktextinput_p_p.h
tests/auto/qtquick2/qquicktextinput/tst_qquicktextinput.cpp