tests/auto/declarative/qdeclarativeecmascript/data/dynamicDeletion.qml
author William Roberts <williamr@symbian.org>
Thu, 22 Jul 2010 16:41:55 +0100
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
permissions -rw-r--r--
Catchup to latest Symbian^4

import Qt.test 1.0

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

    function killOther()
    {
        obj.objectProperty.destroy(500);
    }

    function killMe()
    {
        obj.destroy();//Must not segfault
    }
}