17 #ifndef GLOBALSHORTCUT_H
18 #define GLOBALSHORTCUT_H
21 #include <QQuickWindow>
43 Q_PROPERTY(
bool active READ isActive WRITE setActive NOTIFY activeChanged)
50 void setShortcut(const QVariant &
shortcut);
52 bool isActive() const;
53 void setActive(
bool active);
56 void keyPressEvent(QKeyEvent * event) override;
57 void keyReleaseEvent(QKeyEvent * event) override;
60 void shortcutChanged(const QVariant &
shortcut);
69 void activeChanged(
bool active);
77 #endif // GLOBALSHORTCUT_H