aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlbinding/data/propertiesAttachedToBindingItself.qml
blob: 98b3aa660656d167a2094b8c69adce30dfeffc5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import QtQml.Models
import QtQuick

Instantiator {
    id: inst
    model: 1
    property int check: 0

    delegate: Binding {
        ListView.delayRemove: true
        Component.onCompleted: inst.check += 1
    }

    Component.onCompleted: {
        if (inst.objectAt(0))
            inst.check += 2
    }
}