QmlDebugger: use another way for detecting new objects

This commit is contained in:
Olivier Goffart
2010-08-24 15:24:04 +02:00
parent 70ffe5ed8c
commit ce134d37f7
5 changed files with 25 additions and 4 deletions

View File

@@ -66,6 +66,7 @@ public:
void message(const QByteArray &);
QDeclarativeEngineDebugClient *client;
QDeclarativeEngineDebug *q_ptr;
int nextId;
int getId();
@@ -371,12 +372,15 @@ void QDeclarativeEngineDebugPrivate::message(const QByteArray &data)
if (!watch)
return;
emit watch->valueChanged(name, value);
} else if (type == "OBJECT_CREATED") {
emit q_ptr->newObjects();
}
}
QDeclarativeEngineDebug::QDeclarativeEngineDebug(QDeclarativeDebugConnection *client, QObject *parent)
: QObject(parent), d_ptr(new QDeclarativeEngineDebugPrivate(client))
{
d_ptr->q_ptr = this;
}
QDeclarativeEngineDebug::~QDeclarativeEngineDebug() {}