| 262 | } |
| 263 | |
| 264 | void InputWindow::slotDefault() |
| 265 | { |
| 266 | QList<QModelIndex> hotkeySelList = hotkeyTable->selectionModel()->selectedRows(); |
| 267 | for (auto item : hotkeySelList) { |
| 268 | context->config.km->default_hotkey(item.row()); |
| 269 | } |
| 270 | |
| 271 | for (int i=0; i<KeyMapping::INPUTLIST_SIZE; i++) { |
| 272 | QList<QModelIndex> inputSelList = inputTable[i]->selectionModel()->selectedRows(); |
| 273 | for (auto item : inputSelList) { |
| 274 | context->config.km->default_input(i, item.row()); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | update(); |
| 279 | } |
| 280 | |
| 281 | void InputWindow::slotDisable() |
| 282 | { |
nothing calls this directly
no test coverage detected