diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/repeater/basic3.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/repeater/basic3.qml | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic3.qml b/tests/auto/declarative/qmlvisual/repeater/basic3.qml index a296801..0193db3 100644 --- a/tests/auto/declarative/qmlvisual/repeater/basic3.qml +++ b/tests/auto/declarative/qmlvisual/repeater/basic3.qml @@ -1,27 +1,31 @@ import QtQuick 1.0 Rectangle { - color: "blue" - width: 300 - height: 200 + color: "white" + width: 120 + height: 240 + id: page ListModel { - id: dataSource + id: model ListElement { - name: "January" + name: "palegoldenrod" } ListElement { - name: "February" + name: "lightsteelblue" } } - Row { - Repeater { - model: dataSource + Column{ + Repeater{ + model: model delegate: Rectangle { - color: "red" + color: "thistle" width: 100 height: 100 - Text { - text: name + Rectangle { + anchors.centerIn: parent + width: 60 + height: 60 + color: name } } } |