summaryrefslogtreecommitdiff
path: root/tests/auto/declarative/qdeclarativerepeater/data/objlist.qml
blob: 17c5d8d76c42a479a08b52ab9b48326adb01ecf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Qt 4.7

Rectangle {
    id: container
    objectName: "container"
    width: 240
    height: 320
    color: "white"
    Repeater {
        id: repeater
        objectName: "repeater"
        model: testData
        property int errors: 0
        property int instantiated: 0
        Component {
            Item{
                Component.onCompleted: {if(index!=model.idx) repeater.errors += 1; repeater.instantiated++}
            }
        }
    }
}