summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/attachedProperty.2.qml
blob: a7184c92002d57c46783813a2573ab88e3e05aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Qt.test 1.0
import Qt.test 1.0 as Namespace

MyQmlObject {
    property alias a: me.a
    property alias b: me.a
    property alias c: me.a
    property alias d: me.a

    property MyQmlObject obj
    obj: MyQmlObject {
        MyQmlObject.value2: 13

        id: me
        property int a: MyQmlObject.value2 * 2
        property int b: Namespace.MyQmlObject.value2 * 2
        property int c: me.Namespace.MyQmlObject.value * 2
        property int d: me.Namespace.MyQmlObject.value * 2
    }
}