aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltc_qprocess/data/uncreatable.qml
blob: aad6ef342115108ac525a98c526f6ed114d9d5ae (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

Item {
    // Illegal cases:
    UncreatableType {}
    SingletonThing {}
    SingletonType {}

    component A: SingletonThing {}
    component AA: A {}
    component AAA: AA {}
    AAA {}

    component B: SingletonType {}
    component BB: B {}
    component BBB: BB {}
    BBB {}

    // Legal cases, where qmltc should not crash
    property SingletonThing myQmlSingleton
    property SingletonType myCppSingleton
    NotSingletonType {} // ok because a non composite type inheriting from a singleton does not become a singleton!
}