MCPcopy Create free account
hub / github.com/clementgallet/libTAS / slotDisable

Method slotDisable

src/program/ui/InputWindow.cpp:281–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void 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}

Callers

nothing calls this directly

Calls 2

reassign_hotkeyMethod · 0.80
reassign_inputMethod · 0.80

Tested by

no test coverage detected