17 #ifndef GLOBALSHORTCUT_REGISTRY_H
18 #define GLOBALSHORTCUT_REGISTRY_H
21 #include <QVariantList>
25 #include "globalshortcut.h"
27 typedef QMap<QVariant, QVector<QPointer<GlobalShortcut>>> GlobalShortcutList;
44 GlobalShortcutList shortcuts()
const;
48 bool hasShortcut(
const QVariant &seq)
const;
57 void setupFilterOnWindow(qulonglong wid);
60 bool eventFilter(QObject *obj, QEvent *event)
override;
63 void removeShortcut(QObject *obj);
66 GlobalShortcutList m_shortcuts;
67 QPointer<QWindow> m_filteredWindow =
nullptr;
The GlobalShortcutRegistry class.
The GlobalShortcut class.