diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-07-10 11:30:53 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-16 02:30:52 +0200 |
commit | 6e5944df6349c080b4e4550e2fd085cfc34cf207 (patch) | |
tree | e24a33d2554bf485ebfac34ce83aa83cca455598 /tests/auto/quick/qquicktextedit/data/positionAt.qml | |
parent | 80dd824864df17bb1293a4438325f2b20306861b (diff) |
Fix horizontal alignment of unwrapped text in TextEdit.
When the actual width of the text in a QTextDocument exceeds the
specificed textWidth it is aligned left irregardless of the text
alignment. Compensate by doing our own alignment of the laid out
document.
Change-Id: I7df900316ffb3ecdf01ddb053480a60a8258182d
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquicktextedit/data/positionAt.qml')
-rw-r--r-- | tests/auto/quick/qquicktextedit/data/positionAt.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktextedit/data/positionAt.qml b/tests/auto/quick/qquicktextedit/data/positionAt.qml index 19093281fe..af0950c9ba 100644 --- a/tests/auto/quick/qquicktextedit/data/positionAt.qml +++ b/tests/auto/quick/qquicktextedit/data/positionAt.qml @@ -5,5 +5,6 @@ TextEdit { objectName: "myInput" width: 50 height: 25 + font.pixelSize: 12 text: "This is\n a long piece of text" } |