aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktext/data
diff options
context:
space:
mode:
authorKari Hautamäki <kari.hautamaki@theqtcompany.com>2015-04-20 15:05:59 +0300
committerKari Hautamäki <kari.hautamaki@theqtcompany.com>2016-05-20 08:20:07 +0000
commitafd01a7341df6ab5629469d9b55ab4f1b195cff0 (patch)
treebfb43518afb74f4297f14a6f47c025c9573b1212 /tests/auto/quick/qquicktext/data
parentad069828db14cbb9d657b482a802358924c6b947 (diff)
Don't render when width is zero and elide is not None
Works now similarly as with very small text lengths (smaller than elide characted length). Change-Id: I0c4aafbcc50343bb0ec8b5f335045e1048a499fd Task-number: QTBUG-34990 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests/auto/quick/qquicktext/data')
-rw-r--r--tests/auto/quick/qquicktext/data/ellipsisText.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktext/data/ellipsisText.qml b/tests/auto/quick/qquicktext/data/ellipsisText.qml
new file mode 100644
index 0000000000..37faafcbf3
--- /dev/null
+++ b/tests/auto/quick/qquicktext/data/ellipsisText.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.0
+
+Text {
+ width: 0
+ height: 10
+ text: "Meaningless text"
+ elide: Text.ElideRight
+
+ Text {
+ objectName: "elidedRef"
+ width: 10
+ height: 10
+ text: "Meaningless text"
+ elide: Text.ElideRight
+ }
+}
+