aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2010-09-13 08:32:12 +0200
committerhjk <[email protected]>2010-09-13 08:32:37 +0200
commit7457083bab4c063af6ec9b8e82ba0441cb59c60b (patch)
tree07c700cab07c9ec8121f9a97d410e2c66c02cfa8 /src/plugins/debugger/watchhandler.cpp
parent5ce3f8ab7a4b9b0ef93b732ff306343518d29fcc (diff)
debugger: only update variables that are operated on
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index 13bdfb288a9..dbfa14b899e 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -487,7 +487,9 @@ void WatchModel::fetchMore(const QModelIndex &index)
if (item->children.isEmpty()) {
WatchData data = *item;
data.setChildrenNeeded();
- engine()->updateWatchData(data);
+ WatchUpdateFlags flags;
+ flags.tryIncremental = true;
+ engine()->updateWatchData(data, flags);
}
}
@@ -1146,16 +1148,17 @@ WatchHandler::WatchHandler(DebuggerEngine *engine)
SIGNAL(triggered()), this, SLOT(emitAllChanged()));
}
-void WatchHandler::beginCycle()
+void WatchHandler::beginCycle(bool fullCycle)
{
- ++generationCounter;
+ if (fullCycle)
+ ++generationCounter;
m_return->beginCycle();
m_locals->beginCycle();
m_watchers->beginCycle();
m_tooltips->beginCycle();
}
-void WatchHandler::endCycle()
+void WatchHandler::endCycle(bool /*fullCycle*/)
{
m_return->endCycle();
m_locals->endCycle();