MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / updateDisabledKeyboardList

Method updateDisabledKeyboardList

QKeyMapper/interception_worker.cpp:877–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875}
876
877void Interception_Worker::updateDisabledKeyboardList(const QString &disabled_device, bool disabled)
878{
879 if (disabled) {
880 if (!disabledKeyboardList.contains(disabled_device)) {
881 disabledKeyboardList.append(disabled_device);
882#ifdef DEBUG_LOGOUT_ON
883 qDebug().nospace() << "[updateDisabledKeyboardList]" << " Add disabled Keyboard -> " << disabled_device;
884#endif
885 }
886 }
887 else {
888 if (disabledKeyboardList.contains(disabled_device)) {
889 disabledKeyboardList.removeAll(disabled_device);
890#ifdef DEBUG_LOGOUT_ON
891 qDebug().nospace() << "[updateDisabledKeyboardList]" << " Remove disabled Keyboard -> " << disabled_device;
892#endif
893 }
894 }
895}
896
897void Interception_Worker::updateDisabledMouseList(const QString &disabled_device, bool disabled)
898{

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected