| 80 | } |
| 81 | |
| 82 | void KeybindSettings::removeKeybind(QString &profile, KeyName &key, ModKeys &mods) |
| 83 | { |
| 84 | QString keystring = makeKeyString(key,mods); // Construct keystring from mods+key |
| 85 | |
| 86 | for(auto &p : m_keybind_profiles) |
| 87 | { |
| 88 | if(p.Name != profile) |
| 89 | continue; |
| 90 | |
| 91 | for(auto iter=p.KeybindArr.begin(); iter!=p.KeybindArr.end(); /*incremented inside loop*/) |
| 92 | { |
| 93 | if(iter->Key==key && iter->Mods==mods) |
| 94 | iter=p.KeybindArr.erase(iter); |
| 95 | else |
| 96 | ++iter; |
| 97 | } |
| 98 | } |
| 99 | qCDebug(logKeybinds) << "Clearing keybind: " << profile << key << mods << keystring; |
| 100 | } |
| 101 | |
| 102 | void KeybindSettings::keybindsDump() |
| 103 | { |
no test coverage detected