summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/signalTriggeredBindings.qml
blob: a2fb4d001e52533ad28e581996e8c52c0f64f099 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Qt.test 1.0
import Qt 4.7

MyQmlObject {
    property real base: 50
    property alias test1: myObject.test1
    property alias test2: myObject.test2

    objectProperty: QtObject {
        id: myObject
        property real test1: base
        property real test2: Math.max(0, base)
    }
        
    // Signal with no args
    onBasicSignal: base = 200
    // Signal with args
    onArgumentSignal: base = 400
}