Fix TextEdit with right aligned text when size changes
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>
Fri, 20 Apr 2012 14:18:53 +0000 (17:18 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Apr 2012 11:47:21 +0000 (13:47 +0200)
commit7c288f1a61173f1904960c96c703ee89ab5a847e
tree0ff0842eebab0a9f188a1f0efe20490844909176
parenta150d1211f9ec49f963227452ee4818746b8c6ed
Fix TextEdit with right aligned text when size changes

Geometry change was avoiding updating size of the QTextDocument, thus
it was not able to right align before something else triggered size
change, e.g. a modification to the text. Also removed unnecessary
cursorRectangleChanged signal that was emitted when moving focus with
mouse.

Change-Id: I293fd5119473eb3def5acd1b3fbb951c12e14412
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
src/quick/items/qquicktextcontrol.cpp
src/quick/items/qquicktextedit.cpp
tests/auto/quick/qquicktextedit/data/horizontalAlignment_RightToLeft.qml
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp