Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / dynamicDeletion.qml
1 import Qt.test 1.0
2
3 MyQmlObject{
4     id: obj
5     objectName: "obj"
6     function create()
7     {
8         obj.objectProperty = Qt.createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"emptyObject"}', obj);
9     }
10
11     function killOther()
12     {
13         obj.objectProperty.destroy(500);
14     }
15
16     function killMe()
17     {
18         obj.destroy();//Must not segfault
19     }
20 }