diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-24 14:34:49 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-08-24 16:03:07 (GMT) |
commit | af2b28f9ca070576ed465f17516fdb9a004b83a4 (patch) | |
tree | 31debbe6a6679563db45000f60f31b20212ca066 /src/declarative/debugger | |
parent | e9e6be0de1e1691b9d10cc9524aabf5d493858d6 (diff) | |
download | Qt-af2b28f9ca070576ed465f17516fdb9a004b83a4.zip Qt-af2b28f9ca070576ed465f17516fdb9a004b83a4.tar.gz Qt-af2b28f9ca070576ed465f17516fdb9a004b83a4.tar.bz2 |
QDeclarativeDebug: send a message when new object are added
Reviewed-by: Lasse Holmstedt
Diffstat (limited to 'src/declarative/debugger')
-rw-r--r-- | src/declarative/debugger/qdeclarativedebug.cpp | 2 | ||||
-rw-r--r-- | src/declarative/debugger/qdeclarativedebug_p.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/debugger/qdeclarativedebug.cpp b/src/declarative/debugger/qdeclarativedebug.cpp index 154df51..1ffe441 100644 --- a/src/declarative/debugger/qdeclarativedebug.cpp +++ b/src/declarative/debugger/qdeclarativedebug.cpp @@ -340,6 +340,8 @@ void QDeclarativeEngineDebugPrivate::message(const QByteArray &data) if (!watch) return; emit watch->valueChanged(name, value); + } else if (type == "OBJECT_CREATED") { + emit q_func()->newObjects(); } } diff --git a/src/declarative/debugger/qdeclarativedebug_p.h b/src/declarative/debugger/qdeclarativedebug_p.h index 2e79c5d..f0fc488 100644 --- a/src/declarative/debugger/qdeclarativedebug_p.h +++ b/src/declarative/debugger/qdeclarativedebug_p.h @@ -99,6 +99,9 @@ public: bool resetBindingForObject(int objectDebugId, const QString &propertyName); bool setMethodBody(int objectDebugId, const QString &methodName, const QString &methodBody); +Q_SIGNALS: + void newObjects(); + private: Q_DECLARE_PRIVATE(QDeclarativeEngineDebug) }; |