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