Support enum return types in Q_INVOKABLE functions.
authorMatthew Vogt <matthew.vogt@nokia.com>
Mon, 18 Jun 2012 05:06:16 +0000 (15:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 21 Jun 2012 22:13:28 +0000 (00:13 +0200)
commitfa457e593deca9fcffe2d6ec6ca0aa40d9fa7b76
treea8e53434055544fcf3ebeb9ba5982b3d7f72cf38
parent57e3325affbe8bbb8edcc2c6d072db28aee46438
Support enum return types in Q_INVOKABLE functions.

Handle enums correctly when used as the return type of a Q_INVOKABLE
function.

Task-number: QTBUG-23543
Change-Id: I14a506ffee08f5ba6aa0fdf27d6104a3ae5c48b3
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/qml/qml/qqmlpropertycache.cpp
src/qml/qml/qqmlpropertycache_p.h
src/qml/qml/v8/qv8qobjectwrapper.cpp
tests/auto/qml/qqmlecmascript/data/invokableEnumRet.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp