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/qml/qdeclarativecomponent.cpp | |
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/qml/qdeclarativecomponent.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp index 15cef16..d2d1f19 100644 --- a/src/declarative/qml/qdeclarativecomponent.cpp +++ b/src/declarative/qml/qdeclarativecomponent.cpp @@ -54,6 +54,7 @@ #include "private/qdeclarativeglobal_p.h" #include "private/qdeclarativescriptparser_p.h" #include "private/qdeclarativedebugtrace_p.h" +#include "private/qdeclarativeenginedebug_p.h" #include <QStack> #include <QStringList> @@ -765,8 +766,11 @@ QDeclarativeComponentPrivate::beginCreate(QDeclarativeContextData *context, cons QObject *rv = begin(ctxt, ep, cc, start, count, &state, bindings); - if (rv && !context->isInternal && ep->isDebugging) - context->asQDeclarativeContextPrivate()->instances.append(rv); + if (ep->isDebugging && rv) { + if (!context->isInternal) + context->asQDeclarativeContextPrivate()->instances.append(rv); + QDeclarativeEngineDebugServer::instance()->objectCreated(engine, rv); + } return rv; } |