diff options
Diffstat (limited to 'tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml')
-rw-r--r-- | tests/auto/declarative/visual/qmlgraphicstext/elide/multilength.qml | 19 |
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..ca41eab --- /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; 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" + } + } +} |