Stellarium 0.13.3
List of all members | Public Slots | Signals | Public Member Functions | Properties
StelAction Class Reference

Public Slots

void setChecked (bool)
 
void trigger ()
 
void toggle ()
 

Signals

void toggled (bool)
 
void triggered ()
 
void changed ()
 

Public Member Functions

 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)
 

Properties

bool checked
 

Detailed Description

Definition at line 27 of file StelActionMgr.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

void StelAction::connectToObject ( QObject *  obj,
const char *  slot 
)

Connect the action to an object property or slot.

Parameters
slotA property or a slot name. The slot can either have the signature func(), and in that case the action is made not checkable, either 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: