diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-05-16 16:07:47 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-17 02:39:08 +0200 |
commit | 825f53b1a5bfff4bec3f5a1d4d25308477b9a98f (patch) | |
tree | d62f45883636736fc09637c6f22b78382ea330bb /tests/auto/quick/qquicktextedit/data | |
parent | a03290bd7e988294ec8167dc17865bb94b478f7b (diff) |
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>
Diffstat (limited to 'tests/auto/quick/qquicktextedit/data')
-rw-r--r-- | tests/auto/quick/qquicktextedit/data/hAlignVisual.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktextedit/data/hAlignVisual.qml b/tests/auto/quick/qquicktextedit/data/hAlignVisual.qml new file mode 100644 index 0000000000..136e5d21a2 --- /dev/null +++ b/tests/auto/quick/qquicktextedit/data/hAlignVisual.qml @@ -0,0 +1,13 @@ +import QtQuick 2.0 + +Rectangle { + width: 200 + height: 100 + + Text { + objectName: "textItem" + text: "AA\nBBBBB\nCCCCCCCCCCCCCCCC" + anchors.centerIn: parent + horizontalAlignment: Text.AlignLeft + } +} |