Home · All Classes · Main Classes · Deprecated
Public Member Functions | Static Public Member Functions | Protected Attributes

MOrientationChangeEvent Class Reference

This class contains event parameters for orientation change events. More...

Inherits QGraphicsSceneEvent.

List of all members.

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

Detailed Description

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().

See also:
MWidget::orientationChangeEvent()

Constructor & Destructor Documentation

MOrientationChangeEvent::MOrientationChangeEvent ( M::Orientation  newOrientation = M::Landscape  )  [explicit]

Creates a new orientation change event with the orientation specified by newOrientation.

MOrientationChangeEvent::~MOrientationChangeEvent (  )  [virtual]

Destructor


Member Function Documentation

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.


Member Data Documentation

MOrientationChangeEventPrivate* const MOrientationChangeEvent::d_ptr [protected]

Copyright © 2010 Nokia Corporation
MeeGo Touch