diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/repeater/basic3.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/repeater/basic3.qml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic3.qml b/tests/auto/declarative/qmlvisual/repeater/basic3.qml new file mode 100644 index 00000000..0193db30 --- /dev/null +++ b/tests/auto/declarative/qmlvisual/repeater/basic3.qml @@ -0,0 +1,33 @@ +import QtQuick 1.0 + +Rectangle { + color: "white" + width: 120 + height: 240 + id: page + ListModel { + id: model + ListElement { + name: "palegoldenrod" + } + ListElement { + name: "lightsteelblue" + } + } + Column{ + Repeater{ + model: model + delegate: Rectangle { + color: "thistle" + width: 100 + height: 100 + Rectangle { + anchors.centerIn: parent + width: 60 + height: 60 + color: name + } + } + } + } +} |