summaryrefslogtreecommitdiffstats
path: root/src/script/bridge/qscriptdeclarativeclass.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-14 04:18:55 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-14 04:18:55 (GMT)
commit87f9c823a96d693c95a7dd4d969b652891eb4fbe (patch)
tree679d9e42fac188975bfea7f551a726a4042bcb39 /src/script/bridge/qscriptdeclarativeclass.cpp
parent351060bd313220044b9323d59d56627e78deea9f (diff)
downloadQt-87f9c823a96d693c95a7dd4d969b652891eb4fbe.zip
Qt-87f9c823a96d693c95a7dd4d969b652891eb4fbe.tar.gz
Qt-87f9c823a96d693c95a7dd4d969b652891eb4fbe.tar.bz2
Support calling in QScriptDeclarativeClass
Diffstat (limited to 'src/script/bridge/qscriptdeclarativeclass.cpp')
-rw-r--r--src/script/bridge/qscriptdeclarativeclass.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/script/bridge/qscriptdeclarativeclass.cpp b/src/script/bridge/qscriptdeclarativeclass.cpp
index d67804a..9f5d6b3 100644
--- a/src/script/bridge/qscriptdeclarativeclass.cpp
+++ b/src/script/bridge/qscriptdeclarativeclass.cpp
@@ -47,7 +47,7 @@ collection. If you need to store a Value, convert it to a QScriptValue and stor
QScriptDeclarativeClass::Value::Value()
{
- new (this) JSC::JSValue();
+ new (this) JSC::JSValue(JSC::jsUndefined());
}
QScriptDeclarativeClass::Value::Value(const Value &other)
@@ -406,6 +406,16 @@ QScriptEngine *QScriptDeclarativeClass::engine() const
return d_ptr->engine;
}
+bool QScriptDeclarativeClass::supportsCall() const
+{
+ return d_ptr->supportsCall;
+}
+
+void QScriptDeclarativeClass::setSupportsCall(bool c)
+{
+ d_ptr->supportsCall = c;
+}
+
QScriptDeclarativeClass::PersistentIdentifier
QScriptDeclarativeClass::createPersistentIdentifier(const QString &str)
{
@@ -479,6 +489,14 @@ QScriptDeclarativeClass::propertyFlags(Object *object, const Identifier &name)
return 0;
}
+QScriptDeclarativeClass::Value QScriptDeclarativeClass::call(Object *object,
+ QScriptContext *ctxt)
+{
+ Q_UNUSED(object);
+ Q_UNUSED(ctxt);
+ return Value();
+}
+
QStringList QScriptDeclarativeClass::propertyNames(Object *object)
{
Q_UNUSED(object);