Fix incorrect text alignment in TextEdit.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 16 May 2012 06:07:47 +0000 (16:07 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 17 May 2012 00:39:08 +0000 (02:39 +0200)
commit825f53b1a5bfff4bec3f5a1d4d25308477b9a98f
treed62f45883636736fc09637c6f22b78382ea330bb
parenta03290bd7e988294ec8167dc17865bb94b478f7b
Fix incorrect text alignment in TextEdit.

QTextDocument always spans the full width of a TextEdit so the text
node shouldn't be offset by the x position of the bounding rect.

Change-Id: I882a44baeea4d054279cadc5632df6d8863caea1
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextedit.cpp
tests/auto/quick/qquicktextedit/data/hAlignVisual.qml [new file with mode: 0644]
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp