aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlobjectcreator.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-24 16:35:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-02 14:48:31 +0100
commit785ff10979f0c9ea21b9c3d5cc3eabf3c8c65115 (patch)
tree974478ca51eae7d28eb0e02f100b7bb737f7bfc9 /src/qml/qml/qqmlobjectcreator.cpp
parent5dfd26f089d6386033e3c9908c4f653a037830f7 (diff)
[new compiler] Fix error location for run-time binding errors
We should point to the expression itself, not to the property. Change-Id: I1d5b7dd80f7865076852228985717f79ceb79134 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator.cpp')
-rw-r--r--src/qml/qml/qqmlobjectcreator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlobjectcreator.cpp b/src/qml/qml/qqmlobjectcreator.cpp
index d1a84b717d..f11b383653 100644
--- a/src/qml/qml/qqmlobjectcreator.cpp
+++ b/src/qml/qml/qqmlobjectcreator.cpp
@@ -754,7 +754,7 @@ bool QQmlObjectCreator::setPropertyBinding(QQmlPropertyData *property, const QV4
bs->takeExpression(expr);
} else {
QQmlBinding *qmlBinding = new QQmlBinding(function, _scopeObject, context,
- context->urlString, binding->location.line, binding->location.column);
+ context->urlString, binding->valueLocation.line, binding->valueLocation.column);
// When writing bindings to grouped properties implemented as value types,
// such as point.x: { someExpression; }, then the binding is installed on