diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetext/elide/multilength.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativetext/elide/multilength.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetext/elide/multilength.qml b/tests/auto/declarative/qmlvisual/qdeclarativetext/elide/multilength.qml new file mode 100644 index 00000000..db991a2d --- /dev/null +++ b/tests/auto/declarative/qmlvisual/qdeclarativetext/elide/multilength.qml @@ -0,0 +1,20 @@ +import QtQuick 1.0 +import "../../shared" 1.0 + +Rectangle { + width: 500 + height: 50 + color: "lightBlue" + Rectangle { + width: myText.width + height: myText.height + color: "white" + anchors.centerIn: parent + TestText { + id: myText + NumberAnimation on width { from: 500; to: 0; loops: Animation.Infinite; duration: 5000 } + 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" + } + } +} |