aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/goodCppPropertyChangeHandlers.qml
blob: 1ec2284c7d14cc815c08ee354baa95ae35da6606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import PropertyChangeHandlers 1.0
import QtQuick
Item {
    TypeWithProperties {
        onAChanged: { console.log("OK"); }
        onBChanged: { console.log("OK"); }
        onCChanged: { console.log("OK"); }
        onDChanged: { console.log("OK"); }
        onEChanged: { console.log("OK"); }
    }

    TypeWithProperties {
        onCWeirdSignal: { console.log("OK"); }
        onDSignal: { console.log("OK"); }
    }

    TypeWithProperties {
        onCWeirdSignal: function(value) { console.log("OK?", value); }
        onDSignal: function(value, str) { console.log("OK?", value, str); }
    }

    TypeWithProperties {
        onCChanged: function(value) { console.log("OK?", value); }
        onDChanged: function(value, str) { console.log("OK?", value, str); }
    }
}