forked from qt-creator/qt-creator
Debugger: Avoid one round of lookups in QmlEngine
Will be triggered in handleScope()/insertSubItems() anyway. Change-Id: Id5e236c231558c819398b38a13fb06def9ae39a6 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -2207,18 +2207,6 @@ void QmlEnginePrivate::handleFrame(const QVariantMap &response)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Expand locals that were previously expanded. local.this and watch.*
|
|
||||||
// trigger updates in there handleEvaluatedExpression handlers.
|
|
||||||
LookupItems itemsToLookup;
|
|
||||||
foreach (const QString &iname, watchHandler->expandedINames()) {
|
|
||||||
if (iname != "local.this") {
|
|
||||||
const WatchItem *item = watchHandler->findItem(iname);
|
|
||||||
if (item && item->isLocal())
|
|
||||||
itemsToLookup.insert(int(item->id), {item->iname, item->name, item->exp});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
lookup(itemsToLookup);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlEnginePrivate::handleScope(const QVariantMap &response)
|
void QmlEnginePrivate::handleScope(const QVariantMap &response)
|
||||||
|
|||||||
Reference in New Issue
Block a user