Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / enums.1.qml
1 import Qt.test 1.0
2 import Qt.test 1.0 as Namespace
3
4 MyQmlObject {
5     // Enums from non-namespaced type
6     property int a: MyQmlObject.EnumValue1
7     property int b: MyQmlObject.EnumValue2
8     property int c: MyQmlObject.EnumValue3
9     property int d: MyQmlObject.EnumValue4
10
11     // Enums from namespaced type
12     property int e: Namespace.MyQmlObject.EnumValue1
13     property int f: Namespace.MyQmlObject.EnumValue2
14     property int g: Namespace.MyQmlObject.EnumValue3
15     property int h: Namespace.MyQmlObject.EnumValue4
16
17     // Test that enums don't mask attached properties
18     property int i: MyQmlObject.value
19     property int j: Namespace.MyQmlObject.value
20 }