aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/stackhandler.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-10-05 05:27:30 +0200
committerhjk <hjk@qt.io>2020-10-05 08:46:27 +0000
commitfcaa6801cf609a0ecda64937d38096ecfb1c357f (patch)
tree5bd1cc5133835f406206cf2ee365c9c0117d1e46 /src/plugins/debugger/stackhandler.cpp
parentf4beb6314ce6bd86268057137dc935ed8b6a636d (diff)
Utils: Start replacing SavedActions by QAction or Utils::Aspect
First mechanical step here is to derive SavedActions from BaseAspect instead of QAction. Change-Id: I2ec95883b825462c1d867f83cc2b3bd2c2732055 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/debugger/stackhandler.cpp')
-rw-r--r--src/plugins/debugger/stackhandler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/debugger/stackhandler.cpp b/src/plugins/debugger/stackhandler.cpp
index d1af61e2c7..78da176cef 100644
--- a/src/plugins/debugger/stackhandler.cpp
+++ b/src/plugins/debugger/stackhandler.cpp
@@ -70,10 +70,10 @@ StackHandler::StackHandler(DebuggerEngine *engine)
setObjectName("StackModel");
setHeader({tr("Level"), tr("Function"), tr("File"), tr("Line"), tr("Address") });
- connect(action(ExpandStack), &QAction::triggered,
- this, &StackHandler::reloadFullStack);
- connect(action(MaximalStackDepth), &QAction::triggered,
- this, &StackHandler::reloadFullStack);
+ connect(action(ExpandStack)->action(), &QAction::triggered,
+ this, &StackHandler::reloadFullStack);
+ connect(action(MaximalStackDepth)->action(), &QAction::triggered,
+ this, &StackHandler::reloadFullStack);
// For now there's always only "the" current thread.
rootItem()->appendChild(new ThreadDummyItem);
@@ -390,13 +390,13 @@ bool StackHandler::contextMenuEvent(const ItemViewEvent &ev)
frame = frameAt(row);
const quint64 address = frame.address;
- menu->addAction(action(ExpandStack));
+ menu->addAction(action(ExpandStack)->action());
addAction(menu, tr("Copy Contents to Clipboard"), true, [this] { copyContentsToClipboard(); });
addAction(menu, tr("Save as Task File..."), true, [this] { saveTaskFile(); });
if (m_engine->hasCapability(CreateFullBacktraceCapability))
- menu->addAction(action(CreateFullBacktrace));
+ menu->addAction(action(CreateFullBacktrace)->action());
if (m_engine->hasCapability(AdditionalQmlStackCapability))
addAction(menu, tr("Load QML Stack"), true, [this] { m_engine->loadAdditionalQmlStack(); });
@@ -444,9 +444,9 @@ bool StackHandler::contextMenuEvent(const ItemViewEvent &ev)
}
menu->addSeparator();
- menu->addAction(action(UseToolTipsInStackView));
+ menu->addAction(action(UseToolTipsInStackView)->action());
Internal::addHideColumnActions(menu, ev.view());
- menu->addAction(action(SettingsDialog));
+ menu->addAction(action(SettingsDialog)->action());
menu->popup(ev.globalPos());
return true;
}