forked from qt-creator/qt-creator
Inspector: Fetch objects lazily
QML objects are fetched lazily when constructing the object tree. Incase parents have not been previously fetched, we fetch the required data to construct only the relevant branch of the tree. Task-number: QTCREATORBUG-8246 Change-Id: Id529c3b2334d33ff4eb46b14f50cf042ad2960e2 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1807,6 +1807,11 @@ const WatchData *WatchHandler::watchData(const QModelIndex &idx) const
|
||||
return m_model->watchItem(idx);
|
||||
}
|
||||
|
||||
const QModelIndex WatchHandler::watchDataIndex(const QByteArray &iname) const
|
||||
{
|
||||
return m_model->watchIndex(m_model->findItem(iname));
|
||||
}
|
||||
|
||||
const WatchData *WatchHandler::findData(const QByteArray &iname) const
|
||||
{
|
||||
return m_model->findItem(iname);
|
||||
|
||||
Reference in New Issue
Block a user