diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/ListView/basic3.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/ListView/basic3.qml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/ListView/basic3.qml b/tests/auto/declarative/qmlvisual/ListView/basic3.qml new file mode 100644 index 00000000..982df9a6 --- /dev/null +++ b/tests/auto/declarative/qmlvisual/ListView/basic3.qml @@ -0,0 +1,32 @@ +import QtQuick 1.0 + +Rectangle { + color: "blue" + width: 200 + height: 300 + id: page + ListModel { + id: model + ListElement { + name: "palegoldenrod" + } + ListElement { + name: "lightsteelblue" + } + } + ListView { + anchors.fill: parent + model: model + delegate: Rectangle { + color: "red" + width: 100 + height: 100 + Rectangle { + anchors.centerIn: parent + width: 60 + height: 60 + color: name + } + } + } +} |