Prepare method invocation in QObject bindings for gadget support
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
Fri, 14 Nov 2014 20:53:20 +0000 (21:53 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 23 Dec 2014 13:51:17 +0000 (14:51 +0100)
commitd641008d04475bfb1c1996e408b1408618845b6f
tree537abe3f4f6751c3a41f460546782c483a9bdc8e
parentc9adc7661a7eef4f2eefb51f02c0393be2ec3898
Prepare method invocation in QObject bindings for gadget support

In order to support calling invokable methods in gadgets from JavaScript, the
wrapper code needs to be able to operate on gadgets and not only QObject
pointers. The minimal abstraction for that - QQmlGadgetOrObject - is passed
through the relevant invocation methods in the wrapper for that.

Change-Id: I94f939c942241f49dce4d32d05bf24822b2d331b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4qobjectwrapper.cpp
src/qml/jsruntime/qv4qobjectwrapper_p.h
src/qml/qml/qqmlpropertycache.cpp
src/qml/qml/qqmlpropertycache_p.h
src/qml/qml/qqmlvaluetype_p.h
src/qml/qml/qqmlvaluetypewrapper.cpp