summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativerepeater/data/objlist.qml
blob: e1bd2e2d89200ddf858b4d84b062d3a1087592f3 (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!=modelData.idx) repeater.errors += 1; repeater.instantiated++}
            }
        }
    }
}