| 91 | } |
| 92 | |
| 93 | void HotkeyLineEdit::keyReleaseEvent(QKeyEvent* event) |
| 94 | { |
| 95 | int key = event->key(); |
| 96 | |
| 97 | _pressed_keys.remove(key); |
| 98 | |
| 99 | if (_pressed_keys.isEmpty()) { |
| 100 | clearFocus(); |
| 101 | |
| 102 | registerGlobalHotkey(); |
| 103 | } |
| 104 | |
| 105 | QLineEdit::keyReleaseEvent(event); |
| 106 | } |
| 107 | |
| 108 | void HotkeyLineEdit::registerGlobalHotkey() |
| 109 | { |
nothing calls this directly
no outgoing calls
no test coverage detected