summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlecmascript/data/dynamicDeletion.qml
blob: 618723fae76b0ccaca1cd38b8a3bced0bf63a1d8 (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

MyQmlObject{
    id: obj
    objectName: "obj"
    function create()
    {
        obj.objectProperty = createQmlObject('import Qt.test 1.0; MyQmlObject{objectName:"emptyObject"}', obj);
    }

    function killIt(wait)
    {
        if(obj.objectProperty == undefined || obj.objectProperty == null)
            return;
        if(wait > 0)
            obj.objectProperty.destroy(wait);
        else
            obj.objectProperty.destroy();
    }
}