Home · All Classes · Main Classes · Deprecated
Signals | Public Member Functions | Properties

MObjectMenuModel Class Reference

MObjectMenuModel contains a number of object menu actions related to one widget. More...

Inheritance diagram for MObjectMenuModel:
Inheritance graph
[legend]
Collaboration diagram for MObjectMenuModel:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

MObjectMenuModel contains a number of object menu actions related to one widget.

See also:
MObjectMenu

Definition at line 37 of file corelib/widgets/mobjectmenumodel.h.


Member Function Documentation

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);
}

Here is the call graph for this function:

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);
}

Here is the call graph for this function:

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);
}

Here is the call graph for this function:


Property Documentation

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