forked from qt-creator/qt-creator
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:
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user