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

Method slotDefault

src/program/ui/InputWindow.cpp:264–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264void 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
281void InputWindow::slotDisable()
282{

Callers

nothing calls this directly

Calls 2

default_hotkeyMethod · 0.80
default_inputMethod · 0.80

Tested by

no test coverage detected