Fix signal handlers for signals with default arguments.
authorMichael Brasser <michael.brasser@nokia.com>
Wed, 16 May 2012 02:31:59 +0000 (12:31 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 17 May 2012 06:58:45 +0000 (08:58 +0200)
commit9af1a7d0aee4f9ed48b2519779388830a8dd03e9
tree1f4d5149781f211f3fb7e8ca54180035f9a3f780
parent8236ca1aedabccf4bda4d0e3873ace8b48c522d6
Fix signal handlers for signals with default arguments.

For cloned signals, connect to the index of the original. This was a
regression caused by the switch to QQmlNotifierEndpoint for signal
handlers. This change also makes parameters with default arguments
available from QML, while previously they were unavailable.

Change-Id: I1feb3412c3e9b0f2a5d6644c404c56d53c5544ac
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlboundsignal.cpp
tests/auto/qml/qqmllanguage/data/signalWithDefaultArg.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/testtypes.h
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp