summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qmlcppcodegen/data/revisions.qml
blob: 472c0996afee853db483a4001252301bb60e1b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQml 2.2

QtObject {
    property bool delayed: false
    property int gotten: 0

    function get(a: int) { gotten = a }

    property Binding b: Binding {
        function trigger() { delayed = true }
    }

    property ObjectModel m: ObjectModel {
        function trigger() { get(5) }
    }

    Component.onCompleted: {
        b.trigger()
        m.trigger()
    }
}