![]() |
hivemind 1.0.0
|
Small wrapper around QAction. More...
#include <action.h>


Public Member Functions | |
| Action (QWidget *parent, const QString &label, void(*onClick)(void), const QKeySequence &shortcut=QKeySequence::UnknownKey) | |
| Constructs the Action widget. | |
Small wrapper around QAction.
A tiny wrapper class around QAction that simply provides constructor arguments to add on-click functionality and keyboard shortcuts.
| Gui::Action::Action | ( | QWidget * | parent, |
| const QString & | label, | ||
| void(*)(void) | onClick, | ||
| const QKeySequence & | shortcut = QKeySequence::UnknownKey |
||
| ) |
Constructs the Action widget.
| parent | The parent of the Action widget. |
| label | The label to be displayed in the action. |
| onClick | A function to call when the action is clicked. |
| shortcut | A keyboard shortcut to activate the action. |
Typical usage:
Definition at line 9 of file action.cpp.