| Home · All Classes · Main Classes · Deprecated |
MAction implements an extension of the QAction for libmeegotouch. More...


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) |
| 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.
Definition at line 33 of file corelib/core/maction.h.
| 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.
Definition at line 52 of file corelib/core/maction.h.
{
NoLocation = 0x0000,
ToolBarPortraitLocation = 0x0001,
ToolBarLandscapeLocation = 0x0002,
ToolBarLocation = 0x0003,
ApplicationMenuLocation = 0x0004,
ObjectMenuLocation = 0x0008,
EveryLocation = 0xffff
};
| MAction::MAction | ( | QObject * | parent | ) | [explicit] |
Constructor.
| text | Text to be used as label for action button | |
| parent | Parent object This overloaded constructor is provided for convenience. |
Definition at line 71 of file maction.cpp.
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. |
Definition at line 79 of file maction.cpp.
| MAction::~MAction | ( | ) | [virtual] |
| 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.
Definition at line 134 of file maction.cpp.
{
Q_D(const MAction);
return d->styleAction;
}
| MAction::Locations MAction::location | ( | ) | const |
Return the possible locations this action may reside in.
Definition at line 109 of file maction.cpp.
{
Q_D(const MAction);
return d->location;
}
| void MAction::setIconID | ( | const QString & | id | ) |
Sets the logical ID associated with this action's icon to id.
Definition at line 99 of file maction.cpp.
| 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.
Definition at line 125 of file maction.cpp.
{
Q_D(MAction);
if (d->styleAction != styleAction) {
d->styleAction = styleAction;
d->sendDataChanged();
}
}
QString MAction::iconID [read, write] |
Logical ID of the action icon.
Definition at line 40 of file corelib/core/maction.h.
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:23 (PDT) Doxygen 1.7.1 |
MeeGo Touch |