summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-10-15 04:46:13 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-10-15 04:46:13 (GMT)
commite61b7c6d8194ce42eb0021c4b59788d42c04ec0e (patch)
treee155ab8cae9a061999c489b80ddd3be9cc3afe5e /tests
parent5ab4ccf0e0d3618e799dcfc82bd7fcf3fd560e78 (diff)
downloadQt-e61b7c6d8194ce42eb0021c4b59788d42c04ec0e.zip
Qt-e61b7c6d8194ce42eb0021c4b59788d42c04ec0e.tar.gz
Qt-e61b7c6d8194ce42eb0021c4b59788d42c04ec0e.tar.bz2
Multilength strings test.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/visual/qfxtext/elide/multilength.qml20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/declarative/visual/qfxtext/elide/multilength.qml b/tests/auto/declarative/visual/qfxtext/elide/multilength.qml
new file mode 100644
index 0000000..3382524
--- /dev/null
+++ b/tests/auto/declarative/visual/qfxtext/elide/multilength.qml
@@ -0,0 +1,20 @@
+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: "aaaaaaa bbbbbbb ccccccc\x9Caaaaa bbbbb ccccc\x9Caaa bbb ccc\x9Ca b c"
+ text: "Brevity is the soul of wit, and tediousness the limbs and outward flourishes.\x9CBrevity is a great charm of eloquence.\x9CBe concise!"
+ }
+ }
+}