MCPcopy Create free account
hub / github.com/KDE/kdevelop / insertAction

Method insertAction

plugins/debuggercommon/registers/registersview.cpp:237–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void RegistersView::insertAction(const QString& name, Qt::Key k)
238{
239 auto* a = new QAction(this);
240 a->setCheckable(true);
241 a->setShortcut(k);
242 a->setText(name);
243 a->setShortcutContext(Qt::WidgetWithChildrenShortcut);
244 m_actions.append(a);
245 addAction(a);
246
247 connect(a, &QAction::triggered, this, [this, a](){ menuTriggered(a->text()); });
248}
249
250#include "moc_registersview.cpp"

Callers 4

createCustomElementMethod · 0.80
DebuggerConsoleViewMethod · 0.80

Calls 3

setTextMethod · 0.45
appendMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected