diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-05 01:17:15 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-05 01:17:15 (GMT) |
commit | c7a0cae7deb6e31c5b2e82c9a63ebe0a167fed09 (patch) | |
tree | b57be3fff131de378258a4017dddda361c8799d2 /src/declarative/qml/qmlcompiler_p.h | |
parent | 1fbb8472ccb3fe7c1c92e960e37f31b7077f999f (diff) | |
download | Qt-c7a0cae7deb6e31c5b2e82c9a63ebe0a167fed09.zip Qt-c7a0cae7deb6e31c5b2e82c9a63ebe0a167fed09.tar.gz Qt-c7a0cae7deb6e31c5b2e82c9a63ebe0a167fed09.tar.bz2 |
Improve error handling consistency
Diffstat (limited to 'src/declarative/qml/qmlcompiler_p.h')
-rw-r--r-- | src/declarative/qml/qmlcompiler_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcompiler_p.h b/src/declarative/qml/qmlcompiler_p.h index 9a0ce1c..cc1a9e9 100644 --- a/src/declarative/qml/qmlcompiler_p.h +++ b/src/declarative/qml/qmlcompiler_p.h @@ -45,6 +45,7 @@ #include <QtCore/qbytearray.h> #include <QtCore/qset.h> #include <qml.h> +#include <qmlerror.h> #include <private/qmlinstruction_p.h> #include <private/qmlcompositetypemanager_p.h> class QStringList; @@ -115,8 +116,7 @@ public: bool compile(QmlEngine *, QmlCompositeTypeData *, QmlCompiledComponent *); bool isError() const; - qint64 errorLine() const; - QString errorDescription() const; + QList<QmlError> errors() const; static bool isValidId(const QString &); static bool isBinding(const QString &); @@ -176,6 +176,7 @@ private: QSet<QString> ids; qint64 exceptionLine; + qint64 exceptionColumn; QString exceptionDescription; QmlCompiledData *output; }; |