forked from qt-creator/qt-creator
Debugger: Apply static pattern to DebuggerToolTipManager
Change-Id: I49869c393b922da75572959973b917894f93f4ec Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -863,7 +863,7 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
|
||||
QAction *actCloseEditorToolTips =
|
||||
new QAction(tr("Close Editor Tooltips"), &menu);
|
||||
actCloseEditorToolTips->setEnabled(DebuggerToolTipManager::instance()->hasToolTips());
|
||||
actCloseEditorToolTips->setEnabled(DebuggerToolTipManager::hasToolTips());
|
||||
menu.addAction(actCloseEditorToolTips);
|
||||
|
||||
addBaseContextActions(&menu);
|
||||
@@ -932,7 +932,7 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
|
||||
} else if (act == showUnprintableHexadecimal) {
|
||||
handler->setUnprintableBase(16);
|
||||
} else if (act == actCloseEditorToolTips) {
|
||||
DebuggerToolTipManager::instance()->closeAllToolTips();
|
||||
DebuggerToolTipManager::closeAllToolTips();
|
||||
} else if (handleBaseContextAction(act)) {
|
||||
;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user