Allow enum values to be used as signal parameters
authorBea Lam <bea.lam@nokia.com>
Tue, 5 Apr 2011 06:55:18 +0000 (16:55 +1000)
committerBea Lam <bea.lam@nokia.com>
Tue, 12 Apr 2011 01:07:49 +0000 (11:07 +1000)
commitf2219ce983098fc14655d8f3bb8a7fee2c9abe4d
treef8efd2e3eab7ff4ee868985fa7cdeb3fad0f0f1e
parent6ec7695eaa02c923b90d72e3918b9ab50da63e41
Allow enum values to be used as signal parameters

The fix does not work for enums declared outside of the class that
emits the signal, since in this case it is not possible to access
the metaobject of the class that declared the enum. However the
fix makes a special case for the Qt namespace to allow enums in this
namespace to be used.

Task-number: QTBUG-15983
Change-Id: I6f72255b07010311a20fe068bd97c7db7b294d9b
Reviewed-by: Aaron Kennedy
doc/src/declarative/qtbinding.qdoc
doc/src/snippets/declarative/qtbinding/enums/standalone.qml
src/declarative/qml/qdeclarativeboundsignal.cpp
tests/auto/declarative/qdeclarativeecmascript/data/signalAssignment.2.qml
tests/auto/declarative/qdeclarativeecmascript/data/signalParameterTypes.qml
tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp
tests/auto/declarative/qdeclarativeecmascript/testtypes.h
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp