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

Method nativeModifiers

QHotkey/qhotkey_win.cpp:246–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246quint32 QHotkeyPrivateWin::nativeModifiers(Qt::KeyboardModifiers modifiers, bool &ok)
247{
248 quint32 nMods = 0;
249 if (modifiers & Qt::ShiftModifier)
250 nMods |= MOD_SHIFT;
251 if (modifiers & Qt::ControlModifier)
252 nMods |= MOD_CONTROL;
253 if (modifiers & Qt::AltModifier)
254 nMods |= MOD_ALT;
255 if (modifiers & Qt::MetaModifier)
256 nMods |= MOD_WIN;
257 ok = true;
258 return nMods;
259}
260
261bool QHotkeyPrivateWin::registerShortcut(QHotkey::NativeShortcut shortcut)
262{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected