Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / handleReferenceManagement.handle.2.qml
1 import QtQuick 2.0
2 import Qt.test 1.0
3
4 Item {
5     id: obj
6     objectName: "obj"
7     property CircularReferenceHandle first
8     property CircularReferenceHandle second
9
10     CircularReferenceHandle {
11         id: crh
12         objectName: "crh"
13     }
14
15     function circularReference() {
16         // generate the circularly referential pair
17         first = crh.generate(crh);
18         second = crh.generate(crh);
19         // note: must manually reparent in unit test
20         // after setting the handle references, and
21         // then set the "first" and "second" property
22         // values to null (removing references from obj
23         // to the generated objects).
24     }
25 }