blob: de860d7286612b5b3d79b7bb5344ed0eb67158c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
pragma Strict
import QtQml
QtObject {
property string a: "no"
property int b: -1
property real c: -1
signal thingHappened(thing: int)
signal otherThingHappened(otherThing: real)
onObjectNameChanged: function() { a = objectName }
onAChanged: () => { thingHappened(5) }
onThingHappened: (thing) => { b = thing }
onBChanged: function() { otherThingHappened(b) }
onOtherThingHappened: function(otherThing) { c = otherThing / 2 }
}
|