summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlexpression.h
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/qmlexpression.h
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/qmlexpression.h')
-rw-r--r--src/declarative/qml/qmlexpression.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlexpression.h b/src/declarative/qml/qmlexpression.h
index 96694d6..127d3f3 100644
--- a/src/declarative/qml/qmlexpression.h
+++ b/src/declarative/qml/qmlexpression.h
@@ -44,6 +44,7 @@
#include <QtCore/qobject.h>
#include <QtCore/qvariant.h>
+#include <QtDeclarative/qmlerror.h>
QT_BEGIN_HEADER
@@ -82,6 +83,10 @@ public:
QObject *scopeObject() const;
+ bool hasError() const;
+ void clearError();
+ QmlError error() const;
+
public Q_SLOTS:
QVariant value(bool *isUndefined = 0);