| 91 | } |
| 92 | |
| 93 | void BindShortcut(QWidget* parent, Qt::Key key, QPushButton* button, |
| 94 | const QString& tooltipTemplate) |
| 95 | { |
| 96 | button->setToolTip(tooltipTemplate.arg(KeyChar(key))); |
| 97 | auto shortcut = new QShortcut(QKeySequence(key), parent); |
| 98 | QObject::connect(shortcut, &QShortcut::activated, button, &QPushButton::click); |
| 99 | } |
| 100 | |
| 101 | void SetIcon(QAbstractButton* button, const char* icon) |
| 102 | { |
no test coverage detected