aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/nullIsNull.qml
blob: a6cbbee0bf17e83b6fa6a04d46ec4db14b65a3e9 (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
27
28
import QtQml

QtObject {
    id: root
    property alias someProperty: internal.someProperty

    property Timer t: Timer {
        interval: 1
        running: true
        onTriggered: root.someProperty = null
    }

    property QtObject a: QtObject {
        id: someObjectInstance
    }

    property QtObject b: QtObject {
        id: internal
        property QtObject someProperty: someObjectInstance ? someObjectInstance : null
    }

    property Connections c: Connections {
        target: internal
        function onSomePropertyChanged() {
              internal.someProperty = null
        }
    }
}