MCPcopy Create free account
hub / github.com/Skycoder42/QHotkey / nativeModifiers

Method nativeModifiers

QHotkey/qhotkey_x11.cpp:150–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150quint32 QHotkeyPrivateX11::nativeModifiers(Qt::KeyboardModifiers modifiers, bool &ok)
151{
152 quint32 nMods = 0;
153 if (modifiers & Qt::ShiftModifier)
154 nMods |= ShiftMask;
155 if (modifiers & Qt::ControlModifier)
156 nMods |= ControlMask;
157 if (modifiers & Qt::AltModifier)
158 nMods |= Mod1Mask;
159 if (modifiers & Qt::MetaModifier)
160 nMods |= Mod4Mask;
161 ok = true;
162 return nMods;
163}
164
165bool QHotkeyPrivateX11::registerShortcut(QHotkey::NativeShortcut shortcut)
166{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected