diff options
Diffstat (limited to 'opentrack/win32-shortcuts.cpp')
-rwxr-xr-x | opentrack/win32-shortcuts.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/opentrack/win32-shortcuts.cpp b/opentrack/win32-shortcuts.cpp index 67f71f41..d4107949 100755 --- a/opentrack/win32-shortcuts.cpp +++ b/opentrack/win32-shortcuts.cpp @@ -6,7 +6,6 @@ # include <dinput.h> #include <QList> -#include <QKeySequence> #include <QVariant> #include <QDebug> #include "win32-shortcuts.h" @@ -116,7 +115,6 @@ bool win_key::from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers& mods) { auto qt = static_cast<QVariant>(qt_).toInt(); auto our_mods = qt & Qt::KeyboardModifierMask; -#ifdef _WIN32 const auto our_mods_ = our_mods; our_mods |= Qt::ShiftModifier; switch (qt & ~Qt::KeyboardModifierMask) @@ -145,7 +143,6 @@ bool win_key::from_qt(QKeySequence qt_, int& dik, Qt::KeyboardModifiers& mods) case Qt::Key::Key_Bar: qt = Qt::Key::Key_Backslash; break; default: our_mods = our_mods_; break; } -#endif const auto key = qt & ~Qt::KeyboardModifierMask; for (auto& wk : windows_key_sequences) |