Handle enum values of -1 correctly.
authorMichael Brasser <michael.brasser@nokia.com>
Thu, 21 Jun 2012 23:23:26 +0000 (09:23 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 22 Jun 2012 04:54:59 +0000 (06:54 +0200)
commit55faad4873a9409bb1b33a10da7329d13a95aff9
treeb08f5b801079e49ddc9d6a5839eeb14a1e238a0f
parent033bf75d99c281d4a133fada297b7b141a0af555
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>
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlcompiler_p.h
src/qml/qml/qqmlcustomparser.cpp
src/qml/qml/qqmlcustomparser_p.h
src/qml/qml/qquicklistmodel.cpp
tests/auto/qml/qqmlecmascript/data/enums.3.qml
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp