diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml | 32 |
1 files changed, 32 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 0000000000..e52c609343 --- /dev/null +++ b/tests/auto/declarative/qmlvisual/qdeclarativetext/elide/elide.qml @@ -0,0 +1,32 @@ +import QtQuick 1.0 +import "../../shared" 1.0 + +Rectangle { + width: childrenRect.width + height: childrenRect.height + Column { + width: 80 + height: myText.height*4 + TestText { + elide: "ElideLeft" + text: "aaa bbb ccc ddd eee fff" + width: 80 + id: myText + } + TestText { + elide: "ElideMiddle" + text: "aaa bbb ccc ddd eee fff" + width: 80 + } + TestText { + elide: "ElideRight" + text: "aaa bbb ccc ddd eee fff" + width: 80 + } + TestText { + elide: "ElideNone" + text: "aaa bbb ccc ddd eee fff" + width: 80 + } + } +} |