diff options
Diffstat (limited to 'opentrack')
-rwxr-xr-x | opentrack/win32-shortcuts.cpp | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | opentrack/win32-shortcuts.h | 2 |
2 files changed, 2 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) diff --git a/opentrack/win32-shortcuts.h b/opentrack/win32-shortcuts.h index 8167036d..3e824b89 100644..100755 --- a/opentrack/win32-shortcuts.h +++ b/opentrack/win32-shortcuts.h @@ -2,6 +2,8 @@ #ifdef _WIN32 +#include <QKeySequence> + struct win_key; extern QList<win_key> windows_key_mods; |