diff options
author | Christopher Ham <christopher.ham@nokia.com> | 2011-02-17 06:36:08 (GMT) |
---|---|---|
committer | Christopher Ham <christopher.ham@nokia.com> | 2011-02-17 06:36:08 (GMT) |
commit | 13ea38369b7f095e6af96c98bed7a3bb9bf795d5 (patch) | |
tree | 6c29bfeaeaeb88ae6c202c23ce89e49e3b399393 /tests | |
parent | 4e75cb56f37ac2ff22fbc562c85daeb8599753a9 (diff) | |
download | Qt-13ea38369b7f095e6af96c98bed7a3bb9bf795d5.zip Qt-13ea38369b7f095e6af96c98bed7a3bb9bf795d5.tar.gz Qt-13ea38369b7f095e6af96c98bed7a3bb9bf795d5.tar.bz2 |
Adding file required for ListView Autotest
The file was missed out in the previous commit.
Change-Id: Ic8d055e9797b5da2ba1cb548984efc8c7e205751
Task-number: QTBUG-16010
Reviewed-by: Trust Me
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativelistview/data/rightToLeft.qml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativelistview/data/rightToLeft.qml b/tests/auto/declarative/qdeclarativelistview/data/rightToLeft.qml new file mode 100644 index 0000000..e31d923 --- /dev/null +++ b/tests/auto/declarative/qdeclarativelistview/data/rightToLeft.qml @@ -0,0 +1,42 @@ +// This example demonstrates placing items in a view using +// a VisualItemModel + +import QtQuick 1.0 + +Rectangle { + color: "lightgray" + width: 240 + height: 320 + + VisualItemModel { + id: itemModel + objectName: "itemModel" + Rectangle { + objectName: "item1" + height: view.height; width: 100; color: "#FFFEF0" + Text { objectName: "text1"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent } + } + Rectangle { + objectName: "item2" + height: view.height; width: 200; color: "#F0FFF7" + Text { objectName: "text2"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent } + } + Rectangle { + objectName: "item3" + height: view.height; width: 240; color: "#F4F0FF" + Text { objectName: "text3"; text: "index: " + parent.VisualItemModel.index; font.bold: true; anchors.centerIn: parent } + } + } + + ListView { + id: view + objectName: "view" + anchors.fill: parent + anchors.bottomMargin: 30 + model: itemModel + highlightRangeMode: "StrictlyEnforceRange" + orientation: ListView.Horizontal + flickDeceleration: 2000 + layoutDirection: Qt.RightToLeft + } +} |