summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeitem/data/childrenRect.qml
blob: f351b53dbbeb9064ae8e823c9cd3d32fffb5ea71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import Qt 4.7

Rectangle {
    width: 400
    height: 400

    property int childCount: 0;

    Item {
        objectName: "testItem"
        width: childrenRect.width
        height: childrenRect.height

        Repeater {
            id: repeater
            model: childCount
            delegate: Rectangle {
                x: index*10
                y: index*20
                width: 10
                height: 20

                color: "red"
            }
        }
    }
}