26 #include "Utils/Pimpl.h" 63 Shortcut(
ShortcutWidget* parent,
const QString& identifier,
const QString& name,
const QString& default_shortcut);
71 Shortcut(
ShortcutWidget* parent,
const QString& identifier,
const QString& name,
const QStringList& default_shortcuts);
139 for(QShortcut* sc : shortcuts){
140 parent->connect(sc, &QShortcut::activated, func);
QList< QKeySequence > get_sequences() const
get a list key squences mapped to this shortcut
QString get_name() const
get the human-readable name of the shortcut
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:40
QString get_identifier() const
get the unique identifier
void create_qt_shortcut(QWidget *parent, T func)
create a qt shortcut for a widget
Definition: Shortcut.h:137
void change_shortcut(const QStringList &shortcuts)
QStringList get_shortcuts() const
get a human-readable list of mapped shortcuts
QStringList get_default() const
get a human-readable list of mapped default shortcuts
Definition: org_mpris_media_player2_adaptor.h:20