aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/enums.3.qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2012-06-22 09:23:26 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-22 06:54:59 +0200
commit55faad4873a9409bb1b33a10da7329d13a95aff9 (patch)
treeb08f5b801079e49ddc9d6a5839eeb14a1e238a0f /tests/auto/qml/qqmlecmascript/data/enums.3.qml
parent033bf75d99c281d4a133fada297b7b141a0af555 (diff)
Handle enum values of -1 correctly.
This was already handled correctly most places; now the remaining cases (using an enum in ListModel, and assigning an enum to an integer property) should also work correctly. Task-number: QTBUG-21679 Change-Id: Ibff13f0b94da94b18e2e3bae4aa6ba44e0fa944b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/enums.3.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/enums.3.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/enums.3.qml b/tests/auto/qml/qqmlecmascript/data/enums.3.qml
index c77d635a1e..fd3432fc9f 100644
--- a/tests/auto/qml/qqmlecmascript/data/enums.3.qml
+++ b/tests/auto/qml/qqmlecmascript/data/enums.3.qml
@@ -19,6 +19,9 @@ Item {
property int h: Namespace.MyQmlObject.EnumValue3
property int i: Namespace.MyQmlObject.EnumValue4
+ // -1 enum
+ property int j: MyQmlObject.EnumValue5
+
// Count the onChanged signals to see whether
// they're assigned as literals or via bindings
property int ac: 0
@@ -29,6 +32,7 @@ Item {
property int fc: 0
property int hc: 0
property int ic: 0
+ property int jc: 0
onAChanged: ac++
onBChanged: bc++
@@ -38,4 +42,5 @@ Item {
onFChanged: fc++
onHChanged: hc++
onIChanged: ic++
+ onJChanged: jc++
}