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

Method updateDisabledMouseList

QKeyMapper/interception_worker.cpp:897–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897void Interception_Worker::updateDisabledMouseList(const QString &disabled_device, bool disabled)
898{
899 if (disabled) {
900 if (!disabledMouseList.contains(disabled_device)) {
901 disabledMouseList.append(disabled_device);
902#ifdef DEBUG_LOGOUT_ON
903 qDebug().nospace() << "[updateDisabledMouseList]" << " Add disabled Mouse -> " << disabled_device;
904#endif
905 }
906 }
907 else {
908 if (disabledMouseList.contains(disabled_device)) {
909 disabledMouseList.removeAll(disabled_device);
910#ifdef DEBUG_LOGOUT_ON
911 qDebug().nospace() << "[updateDisabledMouseList]" << " Remove disabled Mouse -> " << disabled_device;
912#endif
913 }
914 }
915}
916
917void Interception_Worker::syncDisabledKeyboardList()
918{

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected