Set cursorVisible to false when im cursor length is 0.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Thu, 29 Mar 2012 06:34:09 +0000 (16:34 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Apr 2012 08:45:55 +0000 (10:45 +0200)
commit368a3a736c8dbe945cd820b78523191522351494
tree76299394a65073e52920b0d8114d8574b51ae249
parent9cddbbff9da88ba9c889ae1f306e837c3a66377e
Set cursorVisible to false when im cursor length is 0.

If the length of the QInputMethodEvent::Cursor attribute is 0 the
cursor is supposed to be hidden.  To ensure this and any other IM
state is reverted when the input method is reset send a empty
event to the editor when preedit is cancelled or removed and
count formatting or cursor changes when determining if the
input method is composing (i.e has state that needs to be reset).

Change-Id: Ifca69aa0c18776b1aef355ed6ae9aecc40b9d475
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextcontrol.cpp
src/quick/items/qquicktextcontrol_p.h
src/quick/items/qquicktextcontrol_p_p.h
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextinput.cpp
src/quick/items/qquicktextinput_p_p.h
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp