blob: 79e8347330ab9f354aef24b9bda8a18482d22deb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import QtQuick 2.0
import org.qtproject.MixedModule 1.0
QtObject {
property int enumValue: TypeWithEnum.EnumValue2
property int enumValue2: -1
property int scopedEnumValue: TypeWithEnum.MyEnum.EnumValue3
property int enumValueFromSingleton: { var x = SingletonType.EnumValue; return x; }
Component.onCompleted: enumValue2 = TypeWithEnum.EnumValue1
property int duplicatedEnumValueFromSingleton: SingletonType.AnotherEnumValue
property int scopedEnumValueFromSingleton1: SingletonType.EnumInSingleton.AnotherEnumValue
property int scopedEnumValueFromSingleton2: SingletonType.AnotherEnumInSingleton.AnotherEnumValue
property int scopedEnumValueFromSingleton3: { var x = SingletonType.AnotherEnumInSingleton.AnotherEnumValue; return x; }
}
|