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

Method ModifierKey

src/gui/modifier_key.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace OpenOrienteering {
28
29ModifierKey::ModifierKey(int key)
30 : native_text { QKeySequence((int)key).toString(QKeySequence::NativeText) }
31{
32 if (native_text.endsWith(QLatin1Char('+')))
33 {
34 native_text.chop(1);
35 }
36}
37
38ModifierKey::ModifierKey(Qt::KeyboardModifiers keys)
39 : ModifierKey { (int)keys }

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected