1 #ifndef QXTGLOBALSHORTCUT_P_H 32 #define QXTGLOBALSHORTCUT_P_H 34 #include <QAbstractEventDispatcher> 40 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) 41 #include <QAbstractNativeEventFilter> 45 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
46 : public QAbstractNativeEventFilter
55 Qt::KeyboardModifiers mods;
60 bool setShortcut(
const QKeySequence& shortcut);
67 # if QT_VERSION < QT_VERSION_CHECK(5,0,0) 69 static QAbstractEventDispatcher::EventFilter prevEventFilter;
70 static bool eventFilter(
void* message);
73 bool nativeEventFilter(
const QByteArray &eventType,
void *message,
long *result)
override;
74 # endif // QT_VERSION < QT_VERSION_CHECK(5,0,0) 76 static void activateShortcut(quint32 nativeKey, quint32 nativeMods);
81 static quint32 nativeKeycode(Qt::Key keycode);
82 static quint32 nativeModifiers(Qt::KeyboardModifiers modifiers);
84 static bool registerShortcut(quint32 nativeKey, quint32 nativeMods);
85 static bool unregisterShortcut(quint32 nativeKey, quint32 nativeMods);
90 #endif // QXTGLOBALSHORTCUT_P_H The QxtGlobalShortcut class provides a global shortcut aka "hotkey".
Definition: qxtglobalshortcut.h:41
Definition: qxtglobalshortcut_p.h:44