Debugger: Remove 'friend gdbengine' from stackhandler.

Preparing the introduction of tooltips for the new
CDB engine. Fix some breakpoint states in CDB.
This commit is contained in:
Friedemann Kleint
2010-11-22 17:06:08 +01:00
parent 68266eae2e
commit c35672eaa8
5 changed files with 52 additions and 14 deletions

View File

@@ -3268,22 +3268,20 @@ bool GdbEngine::supportsThreads() const
bool GdbEngine::showToolTip()
{
QByteArray iname = tooltipIName(m_toolTipExpression);
const QByteArray iname = tooltipIName(m_toolTipExpression);
if (!debuggerCore()->boolSetting(UseToolTipsInMainEditor)) {
watchHandler()->removeData(iname);
return true;
}
WatchModel *model = watchHandler()->model(TooltipsWatch);
WatchItem *item = model->findItem(iname, model->rootItem());
if (!item) {
const QModelIndex index = watchHandler()->itemIndex(iname);
if (!index.isValid()) {
watchHandler()->removeData(iname);
hideDebuggerToolTip();
return false;
}
QModelIndex index = model->watchIndex(item);
showDebuggerToolTip(m_toolTipPos, model, index, m_toolTipExpression);
showDebuggerToolTip(m_toolTipPos, watchHandler()->model(TooltipsWatch), index, m_toolTipExpression);
return true;
}