Fix bounding rects of text items.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Thu, 19 Apr 2012 01:08:28 +0000 (11:08 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Apr 2012 04:27:46 +0000 (06:27 +0200)
commit2a6e105f43885e0901c252bffc77bd1c9db87b67
treefbab5df14ceeb7e3a798cdbe4e5c6d5effff331d
parent1770fa632facf2f1e4bb05e7689efc939d46cfef
Fix bounding rects of text items.

Ensure the rectangles are correctly positioned with right
and center aligned text, not just sized correctly. Also add
padding to the clip rects so the cursor and styled text aren't
clipped at the item boundaries.

Change-Id: I03ef140589154ebd49b600b0a4c4fbeff845c10f
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktext.cpp
src/quick/items/qquicktext_p.h
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextedit_p.h
src/quick/items/qquicktextinput.cpp
src/quick/items/qquicktextinput_p.h
src/quick/items/qquicktextinput_p_p.h
tests/auto/quick/qquicktext/tst_qquicktext.cpp
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/quick/qquicktextinput/data/horizontalAlignment_RightToLeft.qml
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp