| 592 | } |
| 593 | |
| 594 | QAction *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 | |
| 603 | void MainWindowViewer::createToolBars() |
| 604 | { |
nothing calls this directly
no test coverage detected