blob: c6788f787a95750746eeda4bb3bc88fa468e6250 (
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 QtQuick 2.0
QtObject {
enum MyEnum {
EnumValue1,
EnumValue2,
EnumValue3
}
enum MyOtherEnum {
OtherEnumValue1 = 24,
OtherEnumValue2,
OtherEnumValue3 = 24,
OtherEnumValue4,
OtherEnumValue5 = 1
}
property int enumValue: TypeWithEnum.EnumValue2
property int enumValue2
property int scopedEnumValue: TypeWithEnum.MyEnum.EnumValue2
Component.onCompleted: enumValue2 = TypeWithEnum.EnumValue3
property int otherEnumValue1: TypeWithEnum.OtherEnumValue1
property int otherEnumValue2: TypeWithEnum.OtherEnumValue2
property int otherEnumValue3: TypeWithEnum.OtherEnumValue3
property int otherEnumValue4: TypeWithEnum.OtherEnumValue4
property int otherEnumValue5: TypeWithEnum.OtherEnumValue5
}
|