aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/enumScopes.qml
blob: 4e5c7ca1d2ba9316ca7431790b51a26b931d5f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import QtQml 2.15
import EnumScopeTest 1.0

QtObject {
    property NonSingleton n: NonSingleton {
        id: nonSingleton
    }

    property bool singletonUnscoped: Singleton.enumProperty === Singleton.EnumValue2
    property bool singletonScoped: Singleton.enumProperty === Singleton.EnumType.EnumValue2
    property bool nonSingletonUnscoped: nonSingleton.enumProperty === NonSingleton.EnumValue2
    property bool nonSingletonScoped: nonSingleton.enumProperty === NonSingleton.EnumType.EnumValue2
}