aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlvaluetypewrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlvaluetypewrapper.cpp')
-rw-r--r--src/qml/qml/qqmlvaluetypewrapper.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlvaluetypewrapper.cpp b/src/qml/qml/qqmlvaluetypewrapper.cpp
index 56da6819fe..9a87493e54 100644
--- a/src/qml/qml/qqmlvaluetypewrapper.cpp
+++ b/src/qml/qml/qqmlvaluetypewrapper.cpp
@@ -46,6 +46,7 @@
#include <private/qqmlbinding_p.h>
#include <private/qqmlglobal_p.h>
#include <private/qqmlcontextwrapper_p.h>
+#include <private/qqmlbuiltinfunctions_p.h>
#include <private/qv4engine_p.h>
#include <private/qv4functionobject_p.h>
@@ -380,10 +381,10 @@ void QmlValueTypeWrapper::put(Managed *m, const StringRef name, const ValueRef v
cacheData.valueTypeCoreIndex = index;
cacheData.valueTypePropType = p.userType();
- QV4::StackFrame frame = v4->currentStackFrame();
+ QV4::Scoped<QQmlBindingFunction> bindingFunction(scope, f);
+ bindingFunction->initBindingLocation();
- newBinding = new QQmlBinding(value, reference->object, context,
- frame.source, qmlSourceCoordinate(frame.line), qmlSourceCoordinate(frame.column));
+ newBinding = new QQmlBinding(value, reference->object, context);
newBinding->setTarget(reference->object, cacheData, context);
}