1 #ifndef QXTGLOBALSHORTCUT_H 32 #define QXTGLOBALSHORTCUT_H 34 #include "private/qxtglobalshortcut_export.h" 37 #include <QKeySequence> 44 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled)
45 Q_PROPERTY(
bool valid READ isValid)
46 Q_PROPERTY(QKeySequence shortcut READ shortcut WRITE setShortcut)
50 explicit
QxtGlobalShortcut(const QKeySequence& shortcut, QObject* parent =
nullptr);
53 QKeySequence shortcut() const;
54 bool setShortcut(const QKeySequence& shortcut);
56 bool isEnabled() const;
61 void setEnabled(
bool enabled = true);
62 void setDisabled(
bool disabled = true);
69 QxtGlobalShortcutPrivate *d_ptr;
72 #endif // QXTGLOBALSHORTCUT_H The QxtGlobalShortcut class provides a global shortcut aka "hotkey".
Definition: qxtglobalshortcut.h:41
Definition: qxtglobalshortcut_p.h:44