diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-27 03:48:14 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-27 03:48:14 (GMT) |
commit | 307fad7e813770c8f2a6236828b26cd14ddc57aa (patch) | |
tree | 98096d4fbe7dea9b81dfd71ae5b52736dbd40219 /src/declarative/qml/qmlexpression.cpp | |
parent | 80476372e6f4dd3e179eeba949e86a336bc8fde3 (diff) | |
download | Qt-307fad7e813770c8f2a6236828b26cd14ddc57aa.zip Qt-307fad7e813770c8f2a6236828b26cd14ddc57aa.tar.gz Qt-307fad7e813770c8f2a6236828b26cd14ddc57aa.tar.bz2 |
Make sure we pass through a line number for evaluating bindings.
Also, don't convert URL to string each time we call evaluate.
Diffstat (limited to 'src/declarative/qml/qmlexpression.cpp')
-rw-r--r-- | src/declarative/qml/qmlexpression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlexpression.cpp b/src/declarative/qml/qmlexpression.cpp index ea0e9aa..e88766c 100644 --- a/src/declarative/qml/qmlexpression.cpp +++ b/src/declarative/qml/qmlexpression.cpp @@ -257,7 +257,7 @@ QVariant QmlExpressionPrivate::evalQtScript() QmlRewrite::RewriteBinding rewriteBinding; const QString code = rewriteBinding(expression); - expressionFunction = scriptEngine->evaluate(code, fileName.toString(), line); + expressionFunction = scriptEngine->evaluate(code, fileName, line); expressionFunctionValid = true; } @@ -421,7 +421,7 @@ void QmlExpression::setTrackChange(bool trackChange) void QmlExpression::setSourceLocation(const QUrl &fileName, int line) { Q_D(QmlExpression); - d->fileName = fileName; + d->fileName = fileName.toString(); d->line = line; } |