aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickrepeater/data/objlist_required.qml
blob: cc9dd9566ced10ab20242568d7e0267870228c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.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{
                required property int index
                required property int idx
                Component.onCompleted: {if (index != idx) repeater.errors += 1; repeater.instantiated++}
            }
        }
    }
}