MCPcopy Create free account
hub / github.com/YACReader/yacreader / addActionWithShortcut

Method addActionWithShortcut

YACReader/main_window_viewer.cpp:594–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594QAction *MainWindowViewer::addActionWithShortcut(const QString &text, const QString &shortcutKey)
595{
596 auto *const action = new QAction(text, this);
597 action->setData(shortcutKey);
598 action->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(shortcutKey));
599 addAction(action);
600 return action;
601}
602
603void MainWindowViewer::createToolBars()
604{

Callers

nothing calls this directly

Calls 2

getShortcutMethod · 0.80
setDataMethod · 0.45

Tested by

no test coverage detected