Allow reference to signals using 'on' handler syntax.
authorMichael Brasser <michael.brasser@nokia.com>
Wed, 31 Aug 2011 02:36:32 +0000 (12:36 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Sep 2011 04:58:23 +0000 (06:58 +0200)
commitd481f2ff518df1e44103d1850e7d52bd69260c34
tree1e6713284f99a61c74fbc57b7c753c954a41ff2c
parent1dd8b509074ba60da671f7671f8cf09c3fc001ae
Allow reference to signals using 'on' handler syntax.

This will allow APIs like the following:
trigger: mouseArea.onClicked

However, signal handlers will not be callable from QML:
mouseArea.onClicked() //throws exception

Change-Id: I2ef5cb4e1f3ed4814ef590962391e1b14e3f0c43
Reviewed-on: http://codereview.qt.nokia.com/3683
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/qml/ftw/qmetaobjectbuilder.cpp
src/declarative/qml/qdeclarativepropertycache.cpp
src/declarative/qml/qdeclarativepropertycache_p.h
src/declarative/qml/v8/qv8engine_p.h
src/declarative/qml/v8/qv8qobjectwrapper.cpp
src/declarative/qml/v8/qv8qobjectwrapper_p.h
tests/auto/declarative/qdeclarativeecmascript/data/signalHandlers.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp