diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-06-10 14:22:08 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-18 16:42:30 +0000 |
commit | d475e72dc469dc6d442a36588e19a3e7eca48394 (patch) | |
tree | 962b24bcf8079f6821bc93af7fbe177a4442ff02 /src/qml/qml/qqmljavascriptexpression_p.h | |
parent | 1d76a5d3eab1a071fa35b2668bb09c4adfc41e01 (diff) |
Smaller cleanup to QQmlJavaScriptExpression
Clean up some of the code to create binding expressions.
Change-Id: I1cd826685713b44166c58b114fa91135a664591d
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmljavascriptexpression_p.h')
-rw-r--r-- | src/qml/qml/qqmljavascriptexpression_p.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/qml/qqmljavascriptexpression_p.h b/src/qml/qml/qqmljavascriptexpression_p.h index 24e9878aa2..dfcf8b2d68 100644 --- a/src/qml/qml/qqmljavascriptexpression_p.h +++ b/src/qml/qml/qqmljavascriptexpression_p.h @@ -138,10 +138,8 @@ public: static QV4::ReturnedValue evalFunction(QQmlContextData *ctxt, QObject *scope, const QString &code, const QString &filename, quint16 line); - // doesn't require rewriting the expression - static QV4::ReturnedValue qmlBinding(QQmlContextData *ctxt, QObject *scope, - const QString &code, - const QString &filename, quint16 line); +protected: + void createQmlBinding(QQmlContextData *ctxt, QObject *scope, const QString &code, const QString &filename, quint16 line); private: friend class QQmlContextData; |