summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlvme.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-12 02:05:09 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-12 02:05:09 (GMT)
commit350d455677d928d5154ebf9e33328423c8aa012d (patch)
tree72bc36832aa07fcfe676bed3482766dc2071a8c7 /src/declarative/qml/qmlvme.cpp
parent38c3d2d086d0e7fa07daf0d172d27747d6f95519 (diff)
downloadQt-350d455677d928d5154ebf9e33328423c8aa012d.zip
Qt-350d455677d928d5154ebf9e33328423c8aa012d.tar.gz
Qt-350d455677d928d5154ebf9e33328423c8aa012d.tar.bz2
Clean up qmlparser test
Diffstat (limited to 'src/declarative/qml/qmlvme.cpp')
-rw-r--r--src/declarative/qml/qmlvme.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp
index 5e0f257..794c836 100644
--- a/src/declarative/qml/qmlvme.cpp
+++ b/src/declarative/qml/qmlvme.cpp
@@ -181,6 +181,7 @@ QmlVME::QmlVME()
QString str; \
QDebug d(&str); \
d << desc; \
+ str = str.trimmed(); \
QmlError error; \
error.setDescription(str); \
error.setLine(instr.line); \
@@ -860,7 +861,11 @@ QObject *QmlVME::run(QmlContext *ctxt, QmlCompiledComponent *comp, int start, in
} else {
- VME_EXCEPTION("Cannot assign to non-existant property" << property);
+ if (instr.assignObject.property == -1) {
+ VME_EXCEPTION("Cannot assign to default property");
+ } else {
+ VME_EXCEPTION("Cannot assign to non-existant property" << property);
+ }
}
}