Home · All Classes · Main Classes · Deprecated |
The MOverlay class displays a widget on top of the viewport. More...
Inherits MSceneWindow.
Public Member Functions | |
MOverlay (QGraphicsItem *parent=0) | |
virtual | ~MOverlay () |
MWidget * | widget () const |
void | setWidget (MWidget *widget) |
The MOverlay class displays a widget on top of the viewport.
MOverlay class enables creation and displaying of a widget on top of the current viewport. It provides a widget which is ready for use out of the box. It follows the idea used for MApplication's centralWidget(), i.e. it can be used as a panel (can have a layout applied and filled with other widgets) or simply substituted with another widget. The widget can be positioned inside the scene using alignment and offset defined in stylesheet.
MOverlay::MOverlay | ( | QGraphicsItem * | parent = 0 |
) |
Constructs a widget with the given parent.
MOverlay::~MOverlay | ( | ) | [virtual] |
Destructor.
void MOverlay::setWidget | ( | MWidget * | widget | ) |
Sets the given widget as a topmost widget. The ownership of the widget is passed to the MOverlay instance.
widget | A widget to be set as topmost. |
MWidget * MOverlay::widget | ( | ) | const |
Returns a pointer to the topmost widget. By default this class provides a widget (panel) on which other widgets can be placed.
Copyright © 2010 Nokia Corporation | MeeGo Touch |