Ensure the cursorRectangle is updated as the width of the text changes.
authorAndrew den Exter <andrew.den.exter@jollamobile.com>
Wed, 19 Dec 2012 07:12:58 +0000 (17:12 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 31 Jan 2013 23:52:44 +0000 (00:52 +0100)
commit561ab99ad65711b61c47df9bd78ea928de525a53
tree5b3faf30dbcee3066e37886cb9702a462f004137
parent49651307807fc097d14ae13fb71013e46944eb2a
Ensure the cursorRectangle is updated as the width of the text changes.

Outside of when of a monospace font is used, if the text changes the
visual position of the cursor will have most likely changed as well
even when the cursor index hasn't.

Task-number: QTBUG-28677
Change-Id: If8077772d8541a677d5875976e6cd9fc453731df
Reviewed-by: Alan Alpert <aalpert@rim.com>
src/quick/items/qquicktextinput.cpp
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp