2 import Qt.test 1.0 as Namespace
6 enumProperty: MyQmlObject.EnumValue2
8 // Enum property whose value is from a related type
9 relatedEnumProperty: MyQmlObject.RelatedValue
11 // Enum property whose value is defined in an unrelated type
12 unrelatedEnumProperty: MyTypeObject.RelatedValue
14 // Enum property whose value is defined in the Qt namespace
15 qtEnumProperty: Qt.CaseInsensitive
17 // Enums from non-namespaced type
18 property int a: MyQmlObject.EnumValue1
19 property int b: MyQmlObject.EnumValue2
20 property int c: MyQmlObject.EnumValue3
21 property int d: MyQmlObject.EnumValue4
23 // Enums from namespaced type
24 property int e: Namespace.MyQmlObject.EnumValue1
25 property int f: Namespace.MyQmlObject.EnumValue2
26 property int g: Namespace.MyQmlObject.EnumValue3
27 property int h: Namespace.MyQmlObject.EnumValue4
29 // Test that enums don't mask attached properties
30 property int i: MyQmlObject.value
31 property int j: Namespace.MyQmlObject.value
33 // Enums from a related type
34 property int k: MyQmlObject.RelatedValue
36 // Enum values defined both in a type and a related type
37 property int l: MyQmlObject.MultiplyDefined