Notify when the TextInput cursorRectangle property changes within pre-edit
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 20 May 2011 04:22:39 +0000 (14:22 +1000)
committerAndrew den Exter <andrew.den-exter@nokia.com>
Thu, 9 Jun 2011 08:26:59 +0000 (18:26 +1000)
commit452e13b5407fa4c36f9a573c305d41f551762b93
tree83eebe1184e3f8662b0a3ce29f00b5d35ee6b7f2
parent367743ca4758d8fa4732801bcdda7d0b37e33a57
Notify when the TextInput cursorRectangle property changes within pre-edit

Anything that updates the horizontal scroll is also likely to change the
position of the cursor rectangle and the micro focus.  So group these
actions together and ensure they're done before emitting
cursorPositionChanged() so positionToRectangle() returns a valid value
from that handler.

Change-Id: I5fadc58efb148a8dabe88a94381c86cd64dba3bd
Task-number: QTBUG-19089
Reviewed-by: Martin Jones
(cherry picked from commit a0b2fc44ff8752193cacde52276b1822741f5374)
src/declarative/graphicsitems/qdeclarativetextinput.cpp
src/declarative/graphicsitems/qdeclarativetextinput_p.h
tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp