diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-02 13:00:17 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-02 13:00:17 (GMT) |
commit | 5d3ae53770a0b6ba0ad8c3271f6fcda72179c68e (patch) | |
tree | 241cfb0df7a4c1dc5eaf14f66ae3b691306017d2 /src/script/api | |
parent | c1ac464798858d9a5a3b98bc20f7ef2e98f2d1a1 (diff) | |
download | Qt-5d3ae53770a0b6ba0ad8c3271f6fcda72179c68e.zip Qt-5d3ae53770a0b6ba0ad8c3271f6fcda72179c68e.tar.gz Qt-5d3ae53770a0b6ba0ad8c3271f6fcda72179c68e.tar.bz2 |
first stab at implementing Qt property getter/setters
Not fully working yet, so disabled for now
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/qscriptengine.cpp | 6 | ||||
-rw-r--r-- | src/script/api/qscriptengine_p.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index 9849710..e8a2436 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -2241,6 +2241,12 @@ bool QScriptEnginePrivate::convert(const QScriptValue &value, return false; } +bool QScriptEnginePrivate::hasDemarshalFunction(int type) const +{ + QScriptTypeInfo *info = m_typeInfos.value(type); + return info && (info->demarshal != 0); +} + /*! \internal */ diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h index ff4b2ce..8a81fd3 100644 --- a/src/script/api/qscriptengine_p.h +++ b/src/script/api/qscriptengine_p.h @@ -78,6 +78,7 @@ public: int type, void *ptr, QScriptEnginePrivate *eng); QScriptValue create(int type, const void *ptr); + bool hasDemarshalFunction(int type) const; QScriptValue scriptValueFromJSCValue(JSC::JSValue value); JSC::JSValue scriptValueToJSCValue(const QScriptValue &value); |