diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml b/tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml new file mode 100644 index 0000000..fa6b5da --- /dev/null +++ b/tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml @@ -0,0 +1,31 @@ +import Qt 4.6 + +Rectangle { + width: childrenRect.width + height: childrenRect.height + Column { + width: 80 + height: myText.height*4 + Text { + elide: "ElideLeft" + text: "aaa bbb ccc ddd eee fff" + width: 80 + id: myText + } + Text { + elide: "ElideMiddle" + text: "aaa bbb ccc ddd eee fff" + width: 80 + } + Text { + elide: "ElideRight" + text: "aaa bbb ccc ddd eee fff" + width: 80 + } + Text { + elide: "ElideNone" + text: "aaa bbb ccc ddd eee fff" + width: 80 + } + } +} |