1 #ifndef QGLOBALSHORTCUT_P_H
2 #define QGLOBALSHORTCUT_P_H
24 #include <QAbstractEventDispatcher>
25 #if TTK_QT_VERSION_CHECK(5,0,0)
26 # include <QAbstractNativeEventFilter>
33 #if TTK_QT_VERSION_CHECK(5,0,0)
34 ,
public QAbstractNativeEventFilter
46 bool setShortcut(
const QKeySequence &shortcut);
51 #if !TTK_QT_VERSION_CHECK(5,0,0)
53 static bool eventFilter(
void* message);
55 virtual bool nativeEventFilter(
const QByteArray &type,
void *message,
qint *result)
override final;
59 static quint32 nativeKeycode(Qt::Key keycode);
60 static quint32 nativeModifiers(Qt::KeyboardModifiers modifiers);
61 static bool registerShortcut(quint32 nativeKey, quint32 nativeMods);
62 static bool unregisterShortcut(quint32 nativeKey, quint32 nativeMods);
63 static void activateShortcut(quint32 nativeKey, quint32 nativeMods);
68 #endif // QGLOBALSHORTCUT_P_H
#define TTK_MODULE_EXPORT
Qt::KeyboardModifiers m_mods
static QAbstractEventDispatcher::EventFilter m_prevEventFilter
#define TTK_DECLARE_PUBLIC(Class)
The class of the qglobal shortcut private.
The class of the qglobal shortcut.
The class of the ttk private base.
static QHash< QPair< quint32, quint32 >, QGlobalShortcut * > m_shortcuts