|
void | setChecked (bool) |
|
void | trigger () |
|
void | toggle () |
|
|
void | toggled (bool) |
|
void | triggered () |
|
void | changed () |
|
|
| StelAction (QObject *parent) |
| Don't use this constructor, this is just there to ease the migration from QAction. More...
|
|
| StelAction (const QString &actionId, const QString &groupId, const QString &text, const QString &primaryKey="", const QString &altKey="", bool global=false) |
|
void | connectToObject (QObject *obj, const char *slot) |
| Connect the action to an object property or slot. More...
|
|
void | setCheckable (bool value) |
| Don't use setCheckable, connectToObject can automatically determine if the action is checkable or not. More...
|
|
bool | isCheckable () const |
|
bool | isChecked () const |
|
bool | isGlobal () const |
|
void | setShortcut (const QString &key) |
|
void | setAltShortcut (const QString &key) |
|
QKeySequence::SequenceMatch | matches (const QKeySequence &seq) const |
|
QString | getId () const |
|
QString | getGroup () const |
|
const QKeySequence | getShortcut () const |
|
const QKeySequence | getAltShortcut () const |
|
QString | getText () const |
|
void | setText (const QString &value) |
|
Definition at line 27 of file StelActionMgr.hpp.
StelAction::StelAction |
( |
QObject * |
parent | ) |
|
|
inline |
Don't use this constructor, this is just there to ease the migration from QAction.
Definition at line 35 of file StelActionMgr.hpp.
void StelAction::connectToObject |
( |
QObject * |
obj, |
|
|
const char * |
slot |
|
) |
| |
Connect the action to an object property or slot.
- Parameters
-
slot | A property or a slot name. The slot can either have the signature func() , and in that case the action is made not checkable, or have the signature func(bool) and in that case the action is made checkable. When linked to a property the action is always made checkable. |
void StelAction::setCheckable |
( |
bool |
value | ) |
|
|
inline |
Don't use setCheckable, connectToObject can automatically determine if the action is checkable or not.
This is just there to ease the migration from QAction.
Definition at line 60 of file StelActionMgr.hpp.
The documentation for this class was generated from the following file: