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)
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);
The GlobalShortcut class.
void triggered(const QString &shortcut)
void released(const QString &shortcut)