Fix the evaluation of JS switch statements in QML bindings.
authorRoberto Raggi <roberto.raggi@nokia.com>
Mon, 28 Nov 2011 08:37:03 +0000 (09:37 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 Nov 2011 09:12:44 +0000 (10:12 +0100)
commit7c83628f5e594cc91f4e3bfde32d0062f85d5ec4
treed43242b7646f603e506c872f850118c387dedfe9
parent328d1d2fd6cba7368230a1232e080d3f3310a7f1
Fix the evaluation of JS switch statements in QML bindings.

Task-number: QTBUG-17012

Change-Id: Ic132cf63ed08592fec9c759df1b8b4d5830acea6
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/declarative/qml/qdeclarativerewrite.cpp
src/declarative/qml/qdeclarativerewrite_p.h
tests/auto/declarative/qdeclarativeecmascript/data/switchStatement.1.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/switchStatement.2.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/switchStatement.3.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/switchStatement.4.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/switchStatement.5.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp