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