summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeitem/data/childrenRect.qml
blob: 84f362fe16128b8ed49a7f4c93ffac818c196f44 (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 QtQuick 1.0

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"
            }
        }
    }
}