aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/v8/qv8typewrapper_p.h
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2011-08-22 15:51:28 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-02 01:34:21 +0200
commit6080375fed90c09bfabb96a0319817f14f693b05 (patch)
tree2f91acc1e37cf5a747086066b741fa68fa0bbe57 /src/declarative/qml/v8/qv8typewrapper_p.h
parentd481f2ff518df1e44103d1850e7d52bd69260c34 (diff)
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>
Diffstat (limited to 'src/declarative/qml/v8/qv8typewrapper_p.h')
-rw-r--r--src/declarative/qml/v8/qv8typewrapper_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/v8/qv8typewrapper_p.h b/src/declarative/qml/v8/qv8typewrapper_p.h
index 2e79946a6e..f9309f8e28 100644
--- a/src/declarative/qml/v8/qv8typewrapper_p.h
+++ b/src/declarative/qml/v8/qv8typewrapper_p.h
@@ -75,6 +75,7 @@ public:
v8::Local<v8::Object> newObject(QObject *, QDeclarativeType *, TypeNameMode = IncludeEnums);
v8::Local<v8::Object> newObject(QObject *, QDeclarativeTypeNameCache *, const void *,
TypeNameMode = IncludeEnums);
+ QVariant toVariant(QV8ObjectResource *);
private:
static v8::Handle<v8::Value> Getter(v8::Local<v8::String> property,