diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-06-30 14:51:38 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-06-30 14:51:38 (GMT) |
commit | 80e3aadafffcfedf5e4646fd229abe9740a6b6fb (patch) | |
tree | 62f1ba452c76ea12ed7cbe587d40685c5d6749e7 /src/script/api/qscriptengine_p.h | |
parent | 7a04df50d6ea4c2d7ee1c8fdea7a7c259636db17 (diff) | |
download | Qt-80e3aadafffcfedf5e4646fd229abe9740a6b6fb.zip Qt-80e3aadafffcfedf5e4646fd229abe9740a6b6fb.tar.gz Qt-80e3aadafffcfedf5e4646fd229abe9740a6b6fb.tar.bz2 |
implement setting of default prototype in newQObject()
Diffstat (limited to 'src/script/api/qscriptengine_p.h')
-rw-r--r-- | src/script/api/qscriptengine_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index f6c12f1..ff4b2ce 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -98,6 +98,9 @@ public: QScriptValue objectFromVariantMap(const QVariantMap &vmap); static QVariantMap variantMapFromObject(const QScriptValue &obj); + JSC::JSValue defaultPrototype(int metaTypeId) const; + void setDefaultPrototype(int metaTypeId, JSC::JSValue prototype); + #ifndef QT_NO_QOBJECT JSC::JSValue newQObject(QObject *object, QScriptEngine::ValueOwnership ownership = QScriptEngine::QtOwnership, |