GlobalShortcut(QObject *parent=nullptr)
Constructs a new GlobalShortcut with parent.
bool enabled
Gets whether the shortcut is enabled.
Definition GlobalShortcut.h:28
bool setSequence(const QKeySequence &sequence)
bool global
Definition GlobalShortcut.h:31
void setDisabled(bool disabled=true)
Sets the shortcut disabled.
QKeySequence sequence
the shortcut key sequence
Definition GlobalShortcut.h:30
void setEnabled(bool enabled=true)
Sets the shortcut enabled.
Q_SIGNAL void activated(GlobalShortcut *self)
This signal is emitted when the user types the shortcut's key sequence.
bool valid
Gets whether the shortcut was successfully set up.
Definition GlobalShortcut.h:29
void setAutoRepeat(bool on)
Sets if the shortcut should auto repeat.
void setGlobal(bool global=true)
Makes the shortcut grab a global key.
bool autoRepeat() const
Gets if the shortcut auto repeats.
bool isGlobal() const
Gets if the shortcut only is global.
#define _GSC_CLASS
Definition gsc/global.h:35
Definition Application.h:10