MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / toModifierValue

Method toModifierValue

gui/qt/keypad/qtkeypadbridge.cpp:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119Qt::KeyboardModifiers QtKeypadBridge::toModifierValue(QString m) {
120 Qt::KeyboardModifiers seq = Qt::NoModifier;
121 if (m.contains("Ctrl")) { seq |= Qt::ControlModifier; }
122 if (m.contains("Alt")) { seq |= Qt::AltModifier; }
123 if (m.contains("Shift")) { seq |= Qt::ShiftModifier; }
124 if (m.contains("Meta")) { seq |= Qt::MetaModifier; }
125 return seq;
126}
127
128bool QtKeypadBridge::keymapExport(const QString &path) {
129 if (!keymap) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected