Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / deletedObject.qml
1 import QtQuick 1.0
2 import Qt.test 1.0
3
4 QtObject {
5     property variant obj
6     obj: MyQmlObject {
7         id: myObject
8         value: 92
9     }
10
11     property bool test1: false
12     property bool test2: false
13     property bool test3: false
14     property bool test4: false
15
16     Component.onCompleted: {
17         test1 = myObject.value == 92;
18         test2 = obj.value == 92;
19
20         myObject.deleteOnSet = 1;
21
22         test3 = myObject == null
23         test4 = obj == null
24     }
25 }