Home · All Classes · Main Classes · Deprecated |
MAction implements an extension of the QAction for libmeegotouch. More...
Inherits QAction.
Inherited by MRemoteAction, MServiceAction, and MWidgetAction.
Public Types | |
enum | Location { NoLocation = 0x0000, ToolBarPortraitLocation = 0x0001, ToolBarLandscapeLocation = 0x0002, ToolBarLocation = 0x0003, ApplicationMenuLocation = 0x0004, ObjectMenuLocation = 0x0008, EveryLocation = 0xffff } |
Public Member Functions | |
MAction (QObject *parent) | |
MAction (const QString &text, QObject *parent) | |
MAction (const QString &iconID, const QString &text, QObject *parent) | |
virtual | ~MAction () |
QString | iconID () const |
void | setIconID (const QString &id) |
QString | toggledIconID () const |
void | setToggledIconID (const QString &id) |
Locations | location () const |
void | setLocation (Locations location) |
void | setStyleAction (bool styleAction) |
bool | isStyleAction () const |
Properties | |
QString | iconID |
MAction implements an extension of the QAction for libmeegotouch.
enum MAction::Location |
Possible locations for an action to reside in. An action may stay in different locations on the screen, but will have preferred ones. This information is useful if actions should be shifted from one location to another automatically.
MAction::MAction | ( | QObject * | parent | ) | [explicit] |
Default constructor.
parent | Parent object |
Constructor.
text | Text to be used as label for action button | |
parent | Parent object This overloaded constructor is provided for convenience. |
Constructor.
iconID | Identifier for icon to be shown on action button | |
text | Text to be used as label for action button | |
parent | Parent object This overloaded constructor is provided for convenience. |
MAction::~MAction | ( | ) | [virtual] |
Destructor for an action.
QString MAction::iconID | ( | ) | const |
Returns the logical ID associated with this action's icon.
bool MAction::isStyleAction | ( | ) | const |
Return whether this action is a style action or not.
MAction::Locations MAction::location | ( | ) | const |
Return the possible locations this action may reside in.
void MAction::setIconID | ( | const QString & | id | ) |
Sets the logical ID associated with this action's icon to id.
void MAction::setLocation | ( | Locations | location | ) |
Set the locations this action may reside in.
location | value of possible locations |
void MAction::setStyleAction | ( | bool | styleAction | ) |
sets the action as style action, which can be used to set the style/order/presentation of the contents of the view.
void MAction::setToggledIconID | ( | const QString & | id | ) |
Sets the logical ID associated with this action's toggled icon to id.
QString MAction::toggledIconID | ( | ) | const |
Returns the logical ID associated with this action's toggled icon.
QString MAction::iconID [read, write] |
Logical ID of the action icon.
Copyright © 2010 Nokia Corporation | MeeGo Touch |