From 1d62cefbaa23ef96fa4dc36d950cc2d9a2d4b5c3 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 23 May 2013 22:56:38 +0200 Subject: Add support for direct binding evaluation in QV4Script This way there is no need to rewrite the binding expressions anymore, instead we can directly compile them into a binding function. Change-Id: I91a0c540d066976e363590fe9ccde6a81ee92b1d Reviewed-by: Simon Hausmann --- src/qml/qml/qqmljavascriptexpression_p.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qml/qml/qqmljavascriptexpression_p.h') diff --git a/src/qml/qml/qqmljavascriptexpression_p.h b/src/qml/qml/qqmljavascriptexpression_p.h index d7db55d4f6..caf1266415 100644 --- a/src/qml/qml/qqmljavascriptexpression_p.h +++ b/src/qml/qml/qqmljavascriptexpression_p.h @@ -155,6 +155,11 @@ public: const char *code, int codeLength, const QString &filename, quint16 line, QV4::PersistentValue *qmlscope = 0); + // doesn't require rewriting the expression + static QV4::PersistentValue qmlBinding(QQmlContextData *ctxt, QObject *scope, + const QString &code, + const QString &filename, quint16 line, + QV4::PersistentValue *qmlscope = 0); protected: ~QQmlJavaScriptExpression(); -- cgit v1.2.3