| 279 | } |
| 280 | |
| 281 | void InputWindow::slotDisable() |
| 282 | { |
| 283 | QList<QModelIndex> hotkeySelList = hotkeyTable->selectionModel()->selectedRows(); |
| 284 | for (auto item : hotkeySelList) { |
| 285 | context->config.km->reassign_hotkey(item.row(), 0); |
| 286 | updateHotkeyRow(item.row()); |
| 287 | } |
| 288 | |
| 289 | for (int i=0; i<KeyMapping::INPUTLIST_SIZE; i++) { |
| 290 | QList<QModelIndex> inputSelList = inputTable[i]->selectionModel()->selectedRows(); |
| 291 | for (auto item : inputSelList) { |
| 292 | context->config.km->reassign_input(i, item.row(), 0); |
| 293 | updateInputRow(i, item.row()); |
| 294 | } |
| 295 | } |
| 296 | } |
nothing calls this directly
no test coverage detected