| 133 | } |
| 134 | |
| 135 | bool HotkeyWidget::isValid(int key) const |
| 136 | { |
| 137 | switch (key) { |
| 138 | case 0: |
| 139 | case Qt::Key_Escape: |
| 140 | case Qt::Key_unknown: |
| 141 | return false; |
| 142 | } |
| 143 | |
| 144 | return !isModifier(key); |
| 145 | } |
| 146 | |
| 147 | bool HotkeyWidget::isModifier(int key) const |
| 148 | { |
no outgoing calls
no test coverage detected