debugger: suppress variable tooltips with outdated contents

This commit is contained in:
hjk
2010-09-15 19:02:12 +02:00
parent 2e02f4cb27
commit bd2d160a95
8 changed files with 37 additions and 12 deletions

View File

@@ -35,6 +35,7 @@
#include "debuggeroutputwindow.h"
#include "debuggerplugin.h"
#include "debuggerstringutils.h"
#include "debuggertooltip.h"
#include "breakhandler.h"
#include "moduleshandler.h"
@@ -421,11 +422,26 @@ void DebuggerEngine::showStatusMessage(const QString &msg, int timeout) const
showMessage(msg, StatusBar, timeout);
}
void DebuggerEngine::removeTooltip()
{
watchHandler()->removeTooltip();
hideDebuggerToolTip();
}
void DebuggerEngine::handleCommand(int role, const QVariant &value)
{
//qDebug() << "COMMAND: " << role << value;
if (role != RequestToolTipByExpressionRole)
removeTooltip();
switch (role) {
case RequestActivateFrameRole:
activateFrame(value.toInt());
break;
case RequestReloadFullStackRole:
reloadFullStack();
break;
case RequestReloadSourceFilesRole:
reloadSourceFiles();
break;