blob: c89a228bef88ca9069eeaa57d7e2bcdf6a4a3258 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import QtQuick 2.0
QtObject {
enum MyEnum {
EnumValue1,
EnumValue2,
EnumValue3
}
property int enumValue: TypeWithEnum.EnumValue2
property int enumValue2
property int scopedEnumValue: TypeWithEnum.MyEnum.EnumValue2
Component.onCompleted: enumValue2 = TypeWithEnum.EnumValue3
}
|