aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc/data/NestedHelloWorld.qml
blob: b556f5bb07561cbdf213c2fc023b15bb6b9fa308 (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
26
27
28
import QtQml 2.0

QtObject {
    property string hello: "Hello"
    property string greeting: hello + ", World!"

    function jsGetGreeting() {
        return hello + ", World!";
    }

    property QtObject child: QtObject {
        property string hello: "Hello"
        property string greeting: hello + ", Qt!"

        function jsGetGreeting() {
            return hello + ", Qt!";
        }

        property QtObject child: QtObject {
            property string hello: "Hello"
            property string greeting: hello + ", Qml!"

            function jsGetGreeting() {
                return hello + ", Qml!";
            }
        }
    }
}