| 257 | } |
| 258 | |
| 259 | void ShortcutDialog::resetSelected() |
| 260 | { |
| 261 | Qt::Key key = m_keyboardMap->selectedKey(); |
| 262 | if (key == Qt::Key_unknown) return; |
| 263 | const auto* act = m_mgr->actionForKey(QKeySequence(key)); |
| 264 | if (act) { |
| 265 | m_mgr->setBinding(act->id, act->defaultKey); |
| 266 | populateTable(m_filterEdit->text(), m_categoryFilter->currentText()); |
| 267 | updateSelectedKeyInfo(); |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | void ShortcutDialog::updateSelectedKeyInfo() |
| 272 | { |
nothing calls this directly
no test coverage detected