summaryrefslogtreecommitdiffstats
path: root/src/script/api
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-02 13:00:17 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-02 13:00:17 (GMT)
commit5d3ae53770a0b6ba0ad8c3271f6fcda72179c68e (patch)
tree241cfb0df7a4c1dc5eaf14f66ae3b691306017d2 /src/script/api
parentc1ac464798858d9a5a3b98bc20f7ef2e98f2d1a1 (diff)
downloadQt-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.cpp6
-rw-r--r--src/script/api/qscriptengine_p.h1
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);