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

Function keyFromModifierCode

src/gui/widgets/key_button_bar.cpp:64–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63
64 int keyFromModifierCode(Qt::KeyboardModifier modifier)
65 {
66 switch(modifier)
67 {
68 case Qt::ControlModifier:
69 return Qt::Key_Control;
70
71 case Qt::ShiftModifier:
72 return Qt::Key_Shift;
73
74 case Qt::AltModifier:
75 return Qt::Key_Alt;
76
77 default:
78 return 0;
79 }
80
81 Q_UNREACHABLE();
82 }
83
84
85} // namespace

Callers 2

addModifierButtonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected