summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlvme.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-22 08:16:47 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-22 08:16:47 (GMT)
commitba602c39e2ab7c16dcb212c935dbacdf053c6623 (patch)
treeafefdb2249373860a370fb6b92800787d9842da8 /src/declarative/qml/qmlvme.cpp
parent95e370e53e24cf4210bdea07022a7c4d94cd8854 (diff)
downloadQt-ba602c39e2ab7c16dcb212c935dbacdf053c6623.zip
Qt-ba602c39e2ab7c16dcb212c935dbacdf053c6623.tar.gz
Qt-ba602c39e2ab7c16dcb212c935dbacdf053c6623.tar.bz2
Fix test failures.
Also add a test for script errors within signal handlers.
Diffstat (limited to 'src/declarative/qml/qmlvme.cpp')
-rw-r--r--src/declarative/qml/qmlvme.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp
index 7f673a2..fc19ebd2 100644
--- a/src/declarative/qml/qmlvme.cpp
+++ b/src/declarative/qml/qmlvme.cpp
@@ -540,7 +540,11 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt,
QMetaMethod signal =
target->metaObject()->method(instr.storeSignal.signalIndex);
- (void *)new QmlBoundSignal(ctxt, primitives.at(instr.storeSignal.value), target, signal, target);
+ QmlBoundSignal *bs = new QmlBoundSignal(target, signal, target);
+ QmlExpression *expr =
+ new QmlExpression(ctxt, primitives.at(instr.storeSignal.value), target);
+ expr->setSourceLocation(comp->url, instr.line);
+ bs->setExpression(expr);
}
break;