Allow conversion of QObject Module API to QVariant
authorChris Adams <christopher.adams@nokia.com>
Mon, 22 Aug 2011 05:51:28 +0000 (15:51 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Sep 2011 23:34:21 +0000 (01:34 +0200)
commit6080375fed90c09bfabb96a0319817f14f693b05
tree2f91acc1e37cf5a747086066b741fa68fa0bbe57
parentd481f2ff518df1e44103d1850e7d52bd69260c34
Allow conversion of QObject Module API to QVariant

This commit adds a conversion codepath for QV8TypeResource to QVariant
where the resource contains a QObject module API.  This allows such a
module API to be used as the "target" in a Connections element.

Task-number: QTBUG-20937
Change-Id: I9214b531968f2e6981a86e643859a97297c6a02a
Reviewed-on: http://codereview.qt.nokia.com/3286
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/qml/v8/qv8engine.cpp
src/declarative/qml/v8/qv8typewrapper.cpp
src/declarative/qml/v8/qv8typewrapper_p.h
tests/auto/declarative/qdeclarativeconnection/data/moduleapi-target.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeconnection/tst_qdeclarativeconnection.cpp