diff options
author | Aurindam Jana <[email protected]> | 2012-11-23 17:15:29 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2012-11-24 22:51:19 +0100 |
commit | 32a0afb9df4971aa433428340b30d773cae464f7 (patch) | |
tree | 36b0ffe2e21c4869bd4278d41dfd28f33f81502a /src/plugins/debugger/watchhandler.cpp | |
parent | 8d825b5b09775f5938c1d63355d7e65e1bba5ed7 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 8b1d3a6583c..58fa111b319 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -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); |