debugger: fix expansion of object in gdb tooltips on first click

Change-Id: Ia157f8fb7f1b9ff8a8161c8a726d1d483b81e54f
Reviewed-on: http://codereview.qt.nokia.com/179
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-05-27 11:02:57 +02:00
committed by hjk
parent 184b079557
commit 9e231e4407
6 changed files with 267 additions and 354 deletions

View File

@@ -3542,7 +3542,7 @@ bool GdbEngine::showToolTip()
watchHandler()->removeData(iname);
return false;
}
DebuggerTreeViewToolTipWidget *tw = new DebuggerTreeViewToolTipWidget;
DebuggerToolTipWidget *tw = new DebuggerToolTipWidget;
tw->setDebuggerModel(TooltipsWatch);
tw->setExpression(expression);
tw->setContext(*m_toolTipContext);
@@ -3716,11 +3716,11 @@ void GdbEngine::updateWatchData(const WatchData &data, const WatchUpdateFlags &f
// << (m_pendingBreakpointRequests == 0);
UpdateParameters params;
params.tooltipOnly = data.iname.startsWith("tooltip");
params.tryPartial = flags.tryIncremental
&& hasPython()
&& m_pendingWatchRequests == 0
&& m_pendingBreakpointRequests == 0;
params.tooltipOnly = false;
params.varList = data.iname;
updateLocalsPython(params);