diff options
author | Mark Visser <mjmvisser@gmail.com> | 2013-04-30 14:12:37 -0400 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-08 10:46:13 +0200 |
commit | 13afb2b49daec9f5f65dc9a99151c91d685dce13 (patch) | |
tree | 79c00dec10a6d90152213c0a85fafe6a9a480a95 /src/qml/qml/qqmlerror.h | |
parent | 22fc92cf9187460785a05e31620823fe8afe5eab (diff) |
QQmlError.object now holds the scope object that caused exceptions.
Exception errors sent via QQmlEngine::warnings lacked a pointer to the
containing scope. I added an object property to QQmlError, and the
necessary code to fill it with the QObject* scope from binding exception
callbacks.
Task-number: QTBUG-30930
Change-Id: I2a987e8cefc3a2a474d338893e9ebcb77c167adf
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/qml/qml/qqmlerror.h')
-rw-r--r-- | src/qml/qml/qqmlerror.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlerror.h b/src/qml/qml/qqmlerror.h index cea9ee4cc0..cfa0dfcdbf 100644 --- a/src/qml/qml/qqmlerror.h +++ b/src/qml/qml/qqmlerror.h @@ -70,6 +70,8 @@ public: void setLine(int); int column() const; void setColumn(int); + QObject *object() const; + void setObject(QObject *); QString toString() const; private: |