aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/stackhandler.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-12-10 10:35:45 +0100
committerhjk <hjk@qt.io>2019-12-13 08:07:31 +0000
commit4bd26c3e4b03dba2825dc77583f6d85a8f696345 (patch)
tree7f0e6c871e58367a953ca2fe5452b0cfc771f477 /src/plugins/debugger/stackhandler.cpp
parenta1c5ca052bb07b1b7ea612cbd2513c066ede8a4a (diff)
Debugger: Add ability to hide view columns
Not perfect, e.g. one would probably expect the items to appear in the context menu of the header views, too, not just on the main background of the view, but better than nothing. Task-number: QTCREATORBUG-23342 Change-Id: Ifdc44dcfd390112faa7b15bb8a51d809e42d7b29 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/debugger/stackhandler.cpp')
-rw-r--r--src/plugins/debugger/stackhandler.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/debugger/stackhandler.cpp b/src/plugins/debugger/stackhandler.cpp
index ea26e92999..7f20afaeef 100644
--- a/src/plugins/debugger/stackhandler.cpp
+++ b/src/plugins/debugger/stackhandler.cpp
@@ -444,12 +444,9 @@ bool StackHandler::contextMenuEvent(const ItemViewEvent &ev)
[this] { m_engine->loadSymbolsForStack(); });
}
- if (m_engine->hasCapability(MemoryAddressCapability))
- menu->addAction(action(UseAddressInStackView));
-
menu->addSeparator();
menu->addAction(action(UseToolTipsInStackView));
- menu->addSeparator();
+ Internal::addHideColumnActions(menu, ev.view());
menu->addAction(action(SettingsDialog));
menu->popup(ev.globalPos());
return true;