MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / modifierFromKeyCode

Function modifierFromKeyCode

src/gui/widgets/key_button_bar.cpp:43–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace {
42
43 int modifierFromKeyCode(Qt::Key key_code)
44 {
45 switch(key_code)
46 {
47 case Qt::Key_Control:
48 return Qt::ControlModifier;
49
50 case Qt::Key_Shift:
51 return Qt::ShiftModifier;
52
53 case Qt::Key_Alt:
54 return Qt::AltModifier;
55
56 default:
57 return Qt::NoModifier;
58 }
59
60 Q_UNREACHABLE();
61 }
62
63
64 int keyFromModifierCode(Qt::KeyboardModifier modifier)

Callers 2

addKeyButtonMethod · 0.85
eventFilterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected