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