Use V4 binding for non-final properties where possible
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmlecmascript / data / enums.1.qml
1 import Qt.test 1.0
2 import Qt.test 1.0 as Namespace
3
4 MyQmlObject {
5     // Enum property type
6     enumProperty: MyQmlObject.EnumValue2
7
8     // Enum property whose value is from a related type
9     relatedEnumProperty: MyQmlObject.RelatedValue
10
11     // Enum property whose value is defined in an unrelated type
12     unrelatedEnumProperty: MyTypeObject.RelatedValue
13
14     // Enum property whose value is defined in the Qt namespace
15     qtEnumProperty: Qt.CaseInsensitive
16
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
22
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
28
29     // Test that enums don't mask attached properties
30     property int i: MyQmlObject.value
31     property int j: Namespace.MyQmlObject.value
32
33     // Enums from a related type
34     property int k: MyQmlObject.RelatedValue
35
36     // Enum values defined both in a type and a related type
37     property int l: MyQmlObject.MultiplyDefined
38 }