Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qmlvisual / repeater / basic2.qml
1 import QtQuick 1.0
2
3 Rectangle {
4     color: "white"
5     width: 120
6     height: 240
7     id: page
8     Component {
9         id: delegate
10         Rectangle {
11             color: "thistle"
12             width: 100
13             height: 100
14             Rectangle {
15                 anchors.centerIn: parent
16                 width: 60
17                 height: 60
18                 color: name 
19             }
20         }
21     }
22     Column{
23         Repeater{
24             delegate: delegate
25             model: ListModel {
26                 ListElement {
27                     name: "palegoldenrod"
28                 }
29                 ListElement {
30                     name: "lightsteelblue"
31                 }
32             }
33         }
34     }
35 }