Enable literal Qt enum assignment to enum properties.
[profile/ivi/qtdeclarative.git] / tests / auto / qml / qqmllanguage / data / assignBasicTypes.qml
1 import Test 1.0
2 MyTypeObject {
3     flagProperty: "FlagVal1 | FlagVal3"
4     enumProperty: "EnumVal2"
5     qtEnumProperty: Qt.RichText
6     mirroredEnumProperty: Qt.AlignHCenter
7     stringProperty: "Hello World!"
8     uintProperty: 10
9     intProperty: -19
10     realProperty: 23.2
11     doubleProperty: -19.7
12     floatProperty: 8.5
13     colorProperty: "red"
14     dateProperty: "1982-11-25"
15     timeProperty: "11:11:32" 
16     dateTimeProperty: "2009-05-12T13:22:01"
17     pointProperty: "99,13"
18     pointFProperty: "-10.1,12.3"
19     sizeProperty: "99x13"
20     sizeFProperty: "0.1x0.2"
21     rectProperty: "9,7,100x200"
22     rectFProperty: "1000.1,-10.9,400x90.99"
23     boolProperty: true
24     variantProperty: "Hello World!"
25     vectorProperty: "10,1,2.2"
26     vector4Property: "10,1,2.2,2.3"
27     urlProperty: "main.qml?with%3cencoded%3edata"
28
29     objectProperty: MyTypeObject { intProperty: 8 }
30
31     property bool qtEnumTriggeredChange: false
32     onQtEnumPropertyChanged: qtEnumTriggeredChange = true
33
34     property bool mirroredEnumTriggeredChange: false
35     onMirroredEnumPropertyChanged: mirroredEnumTriggeredChange = true
36 }