summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlboundsignal.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-28 03:59:33 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-28 03:59:33 (GMT)
commiteaab2a271f0d73d5a413902169efe32741208c42 (patch)
treeda00990537be1d2546bbb84d3aac986eccf3dd30 /src/declarative/qml/qmlboundsignal.cpp
parent5f9091771eaa26db5ad35e4788c13ac011512b61 (diff)
downloadQt-eaab2a271f0d73d5a413902169efe32741208c42.zip
Qt-eaab2a271f0d73d5a413902169efe32741208c42.tar.gz
Qt-eaab2a271f0d73d5a413902169efe32741208c42.tar.bz2
Add a QmlExpression::error() method
QmlExpression should not print errors itself. This is the responsibility of the caller.
Diffstat (limited to 'src/declarative/qml/qmlboundsignal.cpp')
-rw-r--r--src/declarative/qml/qmlboundsignal.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlboundsignal.cpp b/src/declarative/qml/qmlboundsignal.cpp
index ce591e8..d715309 100644
--- a/src/declarative/qml/qmlboundsignal.cpp
+++ b/src/declarative/qml/qmlboundsignal.cpp
@@ -175,8 +175,11 @@ int QmlBoundSignal::qt_metacall(QMetaObject::Call c, int id, void **a)
{
if (c == QMetaObject::InvokeMetaMethod && id == evaluateIdx) {
if (m_params) m_params->setValues(a);
- if (m_expression)
+ if (m_expression) {
QmlExpressionPrivate::get(m_expression)->value(m_params);
+ if (m_expression->hasError())
+ qWarning().nospace() << qPrintable(m_expression->error().toString());
+ }
if (m_params) m_params->clearValues();
return -1;
} else {