aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktext/data
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2013-11-06 22:05:52 -0600
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-02 22:27:41 +0100
commitf7fc7e1a7f36485642c5c44af31a67986f006cf8 (patch)
tree3851493218540aa5a6cade704bfbdb13be228110 /tests/auto/quick/qquicktext/data
parent7c7665bbd6609d5c0ee7abd635e37c626b60802b (diff)
Ensure correct horizontal alignment when onLineLaidOut is used.
Task-number: QTBUG-34647 Change-Id: I07cb1f6f433d64c8889750a1fef06cd3b3bcc9e5 Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
Diffstat (limited to 'tests/auto/quick/qquicktext/data')
-rw-r--r--tests/auto/quick/qquicktext/data/lineLayoutHAlign.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktext/data/lineLayoutHAlign.qml b/tests/auto/quick/qquicktext/data/lineLayoutHAlign.qml
new file mode 100644
index 0000000000..6349f7a644
--- /dev/null
+++ b/tests/auto/quick/qquicktext/data/lineLayoutHAlign.qml
@@ -0,0 +1,20 @@
+import QtQuick 2.0
+
+Item {
+ id: main
+ width: 200; height: 200
+
+ Text {
+ id: myText
+ objectName: "myText"
+ width: parent.width
+ font.family: "__Qt__Box__Engine__"
+ font.pixelSize: 14
+ horizontalAlignment: Text.AlignHCenter
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
+
+ onLineLaidOut: {
+ // do nothing
+ }
+ }
+}