diff options
Diffstat (limited to 'tests/auto/declarative/qmlvisual/repeater/basic1.qml')
-rw-r--r-- | tests/auto/declarative/qmlvisual/repeater/basic1.qml | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/tests/auto/declarative/qmlvisual/repeater/basic1.qml b/tests/auto/declarative/qmlvisual/repeater/basic1.qml index 7f1ba84c26..5d994b96a0 100644 --- a/tests/auto/declarative/qmlvisual/repeater/basic1.qml +++ b/tests/auto/declarative/qmlvisual/repeater/basic1.qml @@ -1,25 +1,29 @@ import QtQuick 1.0 Rectangle { - color: "blue" - width: 300 - height: 200 - Row { - Repeater { + color: "white" + width: 120 + height: 240 + id: page + Column{ + Repeater{ delegate: Rectangle { - color: "red" + color: "thistle" width: 100 height: 100 - Text { - text: name + Rectangle { + anchors.centerIn: parent + width: 60 + height: 60 + color: name } } model: ListModel { ListElement { - name: "January" + name: "palegoldenrod" } ListElement { - name: "February" + name: "lightsteelblue" } } } |