| Home · All Classes · Main Classes · Deprecated |
MObjectMenuModel contains a number of object menu actions related to one widget. More...


Signals | |
| void | actionAdded (MAction *action) |
| void | actionRemoved (MAction *action) |
| void | actionModified (MAction *action) |
Public Member Functions | |
| void | addAction (MAction *action) |
| void | removeAction (MAction *action) |
| void | modifyAction (MAction *action) |
Properties | |
| MActionList | actions |
| QPointF | cursorPosition |
| QString | contentURI |
MObjectMenuModel contains a number of object menu actions related to one widget.
Definition at line 37 of file corelib/widgets/mobjectmenumodel.h.
| void MObjectMenuModel::actionAdded | ( | MAction * | action | ) | [signal] |
This signal is emitted when an action has been added to actions list.
| void MObjectMenuModel::actionModified | ( | MAction * | action | ) | [signal] |
This signal is emitted when an action has been modified in actions list.
| void MObjectMenuModel::actionRemoved | ( | MAction * | action | ) | [signal] |
This signal is emitted when an action has been removed from actions list.
| void MObjectMenuModel::addAction | ( | MAction * | action | ) |
Adds the action to the actions list.
This method should be used instead of modifying the actions list directly. When the action has been added, this method will emit a actionAdded() signal.
Definition at line 22 of file mobjectmenumodel.cpp.
{
_actions().append(action);
emit actionAdded(action);
}

| void MObjectMenuModel::modifyAction | ( | MAction * | action | ) |
Emits a actionModified() signal.
When modifying an action, this method should be used to inform all participants of the modification. This method will emit a actionModified() signal.
Definition at line 34 of file mobjectmenumodel.cpp.
{
emit actionModified(action);
}

| void MObjectMenuModel::removeAction | ( | MAction * | action | ) |
Removes the action from the actions list.
This method should be used instead of modifying the actions list directly. When the action has been removed, this method will emit a actionRemoved() signal.
Definition at line 28 of file mobjectmenumodel.cpp.
{
_actions().removeOne(action);
emit actionRemoved(action);
}

MObjectMenuModel::actions [read, write] |
A list of object menu actions.
This property contains all object menu actions. This list is modified by MObjectMenu via addAction(), removeAction() and modifyAction() and is always up to date.
Definition at line 49 of file corelib/widgets/mobjectmenumodel.h.
QString MObjectMenuModel::contentURI [read, write] |
Definition at line 101 of file corelib/widgets/mobjectmenumodel.h.
MObjectMenuModel::cursorPosition [read, write] |
Position of the cursor that invokes the object menu.
This property contains the position of the cursor that causes menu to appear.
Definition at line 57 of file corelib/widgets/mobjectmenumodel.h.
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:26 (PDT) Doxygen 1.7.1 |
MeeGo Touch |