diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-28 03:59:33 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-28 03:59:33 (GMT) |
commit | eaab2a271f0d73d5a413902169efe32741208c42 (patch) | |
tree | da00990537be1d2546bbb84d3aac986eccf3dd30 /src/declarative/qml/qmlboundsignal.cpp | |
parent | 5f9091771eaa26db5ad35e4788c13ac011512b61 (diff) | |
download | Qt-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.cpp | 5 |
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 { |