aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data/parentProp.qml
blob: fdfd96ba733ecfeaebf4c5844b30caa4f7738c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import QtQuick

Item {
    implicitWidth: 12
    property int a: 5
    property int c: child.b + 2
    property int i: child.i * 2

    Item {
        id: child
        property int b: parent.a + 4
        property int i: parent.implicitWidth - 1
    }

    Item {
        id: sibling
        implicitWidth: 29
    }

    Item {
        id: evil
        property string a: "599"
        property string implicitWidth: "444"
    }
}