Home · All Classes · Main Classes · Deprecated |
This class contains event parameters for orientation change events. More...
Inherits QGraphicsSceneEvent.
Public Member Functions | |
MOrientationChangeEvent (M::Orientation newOrientation=M::Landscape) | |
virtual | ~MOrientationChangeEvent () |
M::Orientation | orientation () const |
Static Public Member Functions | |
static QEvent::Type | eventNumber () |
Protected Attributes | |
MOrientationChangeEventPrivate *const | d_ptr |
This class contains event parameters for orientation change events.
The orientation change event occurs whenever the viewport changes its orientation between landscape and portrait (note that it doesn't occur when changing angle e.g. from 0 directly to 180 degrees). It is also sent to MApplicationPage when it is about to be shown for the first time - MApplicationPage::appear().
It is used to notify widgets about the orientation change. It can be asked about the new orientation of the viewport. You can handle this event either by catching it in QGraphicsItem::event() or reimplementing MWidget::orientationChangeEvent().
MOrientationChangeEvent::MOrientationChangeEvent | ( | M::Orientation | newOrientation = M::Landscape |
) | [explicit] |
Creates a new orientation change event with the orientation specified by newOrientation.
MOrientationChangeEvent::~MOrientationChangeEvent | ( | ) | [virtual] |
Destructor
QEvent::Type MOrientationChangeEvent::eventNumber | ( | ) | [static] |
Orientation change event definition. Used to identify the type of the event.
M::Orientation MOrientationChangeEvent::orientation | ( | ) | const |
Holds the new orientation of the viewport.
MOrientationChangeEventPrivate* const MOrientationChangeEvent::d_ptr [protected] |
Copyright © 2010 Nokia Corporation | MeeGo Touch |