aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4script_p.h')
-rw-r--r--src/qml/jsruntime/qv4script_p.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4script_p.h b/src/qml/jsruntime/qv4script_p.h
index 46f28ccb1e..5a880fee88 100644
--- a/src/qml/jsruntime/qv4script_p.h
+++ b/src/qml/jsruntime/qv4script_p.h
@@ -43,6 +43,7 @@
#include "qv4global_p.h"
#include "qv4engine_p.h"
+#include "qv4functionobject_p.h"
QT_BEGIN_NAMESPACE
@@ -50,6 +51,19 @@ namespace QV4 {
struct ExecutionContext;
+struct QmlBindingWrapper : FunctionObject {
+ Q_MANAGED
+
+ QmlBindingWrapper(ExecutionContext *scope, Function *f, Object *qml);
+
+ static ReturnedValue call(Managed *that, CallData *);
+ static void markObjects(Managed *m);
+
+private:
+ Object *qml;
+ CallContext *qmlContext;
+};
+
struct Q_QML_EXPORT Script {
Script(ExecutionContext *scope, const QString &sourceCode, const QString &source = QString(), int line = 1, int column = 0)
: sourceFile(source), line(line), column(column), sourceCode(sourceCode)