aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/singletonTest8.qml
blob: d55c16045bd433990cbf19c8019a21dfad4ad70f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import QtQuick 2.0
import org.qtproject.SingletonTest 2.5 as TestNameSpace

Item {
    property int value1: TestNameSpace.SingletonType.testProp1;
    property string value2: "Test value: " + TestNameSpace.SingletonType.testProp3;
    property variant singletonInstance: TestNameSpace.SingletonType;

    TestNameSpace.NonSingletonType { id: nonSingleton }

    property int value3: nonSingleton.testProp1;
    property string value4: "Test value: " + nonSingleton.testProp3;
}