QmlJSInspector: Optimize server requests

Fetch objects on demand. Update objects that are
currently in the crumble path rather than query the
complete tree.

Change-Id: Id4e263fa7a35c90248444461210dbba32dd61b12
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Aurindam Jana
2012-03-28 11:42:47 +02:00
parent 8a88e4face
commit 95cfe23e95
9 changed files with 77 additions and 47 deletions

View File

@@ -314,12 +314,12 @@ void QmlAdapter::setEngineDebugClient(QmlJsDebugClient::QmlEngineDebugClient *cl
Internal::QmlEngine *engine =
qobject_cast<Internal::QmlEngine *>(d->m_engine.data());
if (engine && d->m_engineDebugClient)
disconnect(d->m_engineDebugClient, SIGNAL(result(quint32,QVariant)),
disconnect(d->m_engineDebugClient, SIGNAL(result(quint32,QVariant,QByteArray)),
engine,
SLOT(expressionEvaluated(quint32,QVariant)));
d->m_engineDebugClient = client;
if (engine && d->m_engineDebugClient)
connect(d->m_engineDebugClient, SIGNAL(result(quint32,QVariant)),
connect(d->m_engineDebugClient, SIGNAL(result(quint32,QVariant,QByteArray)),
engine,
SLOT(expressionEvaluated(quint32,QVariant)));
}