This class contains event parameters for orientation change events. More...
|MOrientationChangeEvent (M::Orientation newOrientation=M::Landscape)|
|M::Orientation||orientation () const|
|static QEvent::Type||eventNumber ()|
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 =
Creates a new orientation change event with the orientation specified by newOrientation.
Orientation change event definition. Used to identify the type of the event.
Holds the new orientation of the viewport.
|MOrientationChangeEventPrivate* const MOrientationChangeEvent::d_ptr