aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.4.type1.qml
blob: 9a29b6e17fb07a7ecb17ac2082a983b64a9354d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.0

// Has a self reference in selfRef, and a reference to propertyVarOwnership.4.qml in creatorRef
Item {
    id: root

    property var creatorRef
    property var selfRef
    property var object

    property int dummy: 10
    property bool test: false

    Component.onCompleted: {
        selfRef = root;

        var c = Qt.createComponent("propertyVarOwnership.4.type2.qml");
        object = c.createObject();
        object.creatorRef = root;

        test = true;
    }
}