aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick1/qdeclarativerepeater/data/objlist.qml
blob: b47b04237cc8de2a42cec0fc6e8bf3d426ad3adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 1.0

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