summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlvme.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-09 04:51:40 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-09 04:51:40 (GMT)
commit0dc2fe6685323a8aa6bc0e79f908aa9f2dafe6f2 (patch)
tree206907243d6ec4fe27c7d4170eaed4b3582d76e5 /src/declarative/qml/qmlvme.cpp
parentd131a9f99ebd5d753d2eedfafe0b276410168bc8 (diff)
downloadQt-0dc2fe6685323a8aa6bc0e79f908aa9f2dafe6f2.zip
Qt-0dc2fe6685323a8aa6bc0e79f908aa9f2dafe6f2.tar.gz
Qt-0dc2fe6685323a8aa6bc0e79f908aa9f2dafe6f2.tar.bz2
Output file/line for script errors
Diffstat (limited to 'src/declarative/qml/qmlvme.cpp')
-rw-r--r--src/declarative/qml/qmlvme.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp
index e4eef64..a057f11 100644
--- a/src/declarative/qml/qmlvme.cpp
+++ b/src/declarative/qml/qmlvme.cpp
@@ -567,7 +567,9 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt,
case QmlInstruction::StoreScript:
{
QObject *target = stack.top();
- cp->addScript(primitives.at(instr.storeScript.value), target);
+ cp->addScript(primitives.at(instr.storeScript.value), target,
+ primitives.at(instr.storeScript.fileName),
+ instr.storeScript.lineNumber);
}
break;
@@ -597,12 +599,11 @@ QObject *QmlVME::run(QStack<QObject *> &stack, QmlContext *ctxt,
if (stack.count() == 1 && bindingSkipList.testBit(coreIndex))
break;
- QmlBinding *bind = new QmlBinding((void *)datas.at(instr.assignBinding.value).constData(), comp, context, ctxt, 0);
+ QmlBinding *bind = new QmlBinding((void *)datas.at(instr.assignBinding.value).constData(), comp, context, ctxt, comp->url, instr.line, 0);
bindValues.append(bind);
bind->m_mePtr = &bindValues.values[bindValues.count - 1];
bind->setTarget(mp);
bind->addToObject(target);
- bind->setSourceLocation(comp->url, instr.line);
}
break;