17 #ifndef GLOBALSHORTCUT_H
18 #define GLOBALSHORTCUT_H
21 #include <QQuickWindow>
39 Q_PROPERTY(QVariant shortcut READ shortcut WRITE setShortcut NOTIFY shortcutChanged)
43 Q_PROPERTY(
bool active READ isActive WRITE setActive NOTIFY activeChanged)
49 QVariant shortcut() const;
50 void setShortcut(const QVariant &shortcut);
52 bool isActive() const;
53 void setActive(
bool active);
56 void componentComplete() override;
57 void keyPressEvent(QKeyEvent * event) override;
60 void shortcutChanged(const QVariant &shortcut);
65 void activeChanged(
bool active);
68 void setupFilterOnWindow(QQuickWindow* window);
76 #endif // GLOBALSHORTCUT_H
void triggered(const QString &shortcut)
The GlobalShortcut class.