24 #include "ShortcutIdentifier.h" 25 #include "Utils/Pimpl.h" 29 #define ShortcutHandlerPrivate private 59 ShortcutHandlerPrivate:
106 QString
name()
const;
119 QKeySequence sequence()
const;
132 QString identifier_string()
const;
146 void connect(QWidget* parent, T func, Qt::ShortcutContext context=Qt::WindowShortcut)
151 parent->connect(sc, &QShortcut::activated, func);
162 void connect(QWidget* parent, QObject* receiver,
const char* slot, Qt::ShortcutContext context=Qt::WindowShortcut);
A singleton class for retrieving shortcuts.
Definition: ShortcutHandler.h:41
static Shortcut getInvalid()
get a raw and invalid shortcut. This function is used instead of the default constructor ...
bool is_valid() const
Check if the shortcut is valid or if it was retrieved via getInvalid()
A single shortcut managed by ShortcutHandler. This class holds information about the default shortcut...
Definition: Shortcut.h:41
QList< QKeySequence > sequences() const
get a list key squences mapped to this shortcut
QString name() const
get the human-readable name of the shortcut
ShortcutIdentifier identifier() const
get the unique identifier
const QStringList & shortcuts() const
get a human-readable list of mapped shortcuts
void change_shortcut(const QStringList &shortcuts)
QStringList default_shorcut() const
get a human-readable list of mapped default shortcuts
void connect(QWidget *parent, T func, Qt::ShortcutContext context=Qt::WindowShortcut)
create a qt shortcut for a widget
Definition: Shortcut.h:146
Definition: org_mpris_media_player2_adaptor.h:20