| 26 | #include <widgets/hotkeywidget.h> |
| 27 | |
| 28 | HotkeyWidget::HotkeyWidget(QWidget *parent) : |
| 29 | QPushButton(parent), mHotkey(QKeySequence()), mShowingError(false), mKeyboardFocus(false) |
| 30 | { |
| 31 | mDefaultStyleSheet = "text-align: left; padding: 3px 6px;"; |
| 32 | setStyleSheet(mDefaultStyleSheet); |
| 33 | |
| 34 | setText(tr("Click to select hotkey...")); |
| 35 | setObjectName("HotkeyWidget"); |
| 36 | |
| 37 | if (qApp->style()->objectName() == "oxygen") { |
| 38 | setMinimumWidth(130); |
| 39 | } else { |
| 40 | setMinimumWidth(110); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | void HotkeyWidget::setHotkey(const QString &hotkeyString) |
| 45 | { |
nothing calls this directly
no outgoing calls
no test coverage detected