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

Method updateHotkeyRow

src/program/ui/InputWindow.cpp:134–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void InputWindow::updateHotkeyRow(int row)
135{
136 /* Check if a key is mapped to this hotkey */
137 for (auto itermap : context->config.km->hotkey_mapping) {
138 if (itermap.second == context->config.km->hotkey_list[row]) {
139 /* Build the key string with modifiers */
140 keysym_t ks = itermap.first;
141 QString str = context->config.km->input_description_mod(ks).c_str();
142 hotkeyTable->item(row, 1)->setText(str);
143 return;
144 }
145 }
146
147 hotkeyTable->item(row, 1)->setText("");
148}
149
150void InputWindow::updateInputRow(int tab, int row)
151{

Callers

nothing calls this directly

Calls 2

input_description_modMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected