summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml')
-rw-r--r--tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml b/tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml
new file mode 100644
index 0000000..fa74cc4
--- /dev/null
+++ b/tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml
@@ -0,0 +1,19 @@
+import Qt 4.6
+
+Rectangle {
+ width: 500
+ height: 50
+ color: "lightBlue"
+ Rectangle {
+ width: MyText.width
+ height: MyText.height
+ color: "white"
+ anchors.centerIn: parent
+ Text {
+ id: MyText
+ width: NumberAnimation { from: 500; to: 0; running: true; repeat: true; duration: 1000 }
+ elide: "ElideRight"
+ text: "Brevity is the soul of wit, and tediousness the limbs and outward flourishes.\x9CBrevity is a great charm of eloquence.\x9CBe concise!\x9CSHHHHHHHHHHHHHHHHHHHHHHHHHHHH"
+ }
+ }
+}