5 #include <QKeySequence> 82 QKeySequence keySequence_;
84 std::vector<QString> arguments_;
92 Qt::ShortcutContext getContext()
const;
const QKeySequence & keySequence() const
Returns the programmating key sequence of the hotkey.
Definition: Hotkey.cpp:20
QString toPortableString() const
Returns the portable string representation of the hotkey.
Definition: Hotkey.cpp:88
QString name() const
Returns the display name of the hotkey.
Definition: Hotkey.cpp:25
Hotkey(HotkeyCategory category, QKeySequence keySequence, QString action, std::vector< QString > arguments, QString name)
Definition: Hotkey.cpp:10
Definition: Application.cpp:48
HotkeyCategory category() const
Returns the category where this hotkey is active. This is labeled the "Category" in the UI...
Definition: Hotkey.cpp:30
QString toString() const
Returns the OS-specific string representation of the hotkey.
Definition: Hotkey.cpp:83
virtual ~Hotkey()=default
Definition: Hotkey.hpp:12
QString action() const
Returns the action which describes what this Hotkey is meant to do.
Definition: Hotkey.cpp:35
QString getCategory() const
Returns the user-friendly text representation of the hotkeys category.
Definition: Hotkey.cpp:59
Definition: HotkeyController.hpp:22
std::vector< QString > arguments() const
Returns a list of arguments this hotkey has bound to it.
Definition: Hotkey.cpp:54
bool validAction() const
Definition: Hotkey.cpp:40
HotkeyCategory
Definition: HotkeyCategory.hpp:10