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/mouseselection_align_bl.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/mouseselection_align_bl.qml')
-rw-r--r-- | tests/auto/quick/qquicktextedit/data/mouseselection_align_bl.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktextedit/data/mouseselection_align_bl.qml b/tests/auto/quick/qquicktextedit/data/mouseselection_align_bl.qml new file mode 100644 index 0000000000..4387cbcfc6 --- /dev/null +++ b/tests/auto/quick/qquicktextedit/data/mouseselection_align_bl.qml @@ -0,0 +1,14 @@ +import QtQuick 2.0 + +TextEdit { + focus: true + text: +"0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ +9876543210 + +ZXYWVUTSRQPON MLKJIHGFEDCBA" + width: implicitWidth - 10 + selectByMouse: true + horizontalAlignment: TextEdit.AlignLeft + verticalAlignment: TextEdit.AlignBottom +} |