Home · All Classes · Main Classes · Deprecated |
MPositionIndicator visualizes a position indicator. It is typically used by MPannableViewport (which automatically creates one) to show the panning position but works also separately. More...
Inherits MWidgetController.
Public Slots | |
void | setPosition (const QPointF &newPosition) |
void | setViewportSize (const QSizeF &newViewportSize) |
void | setRange (const QRectF &newRange) |
Public Member Functions | |
MPositionIndicator (QGraphicsItem *parent=0) | |
virtual | ~MPositionIndicator () |
QSizeF | viewportSize () const |
QRectF | range () const |
QPointF | position () const |
Protected Member Functions | |
MPositionIndicator (MPositionIndicatorPrivate *dd, MPositionIndicatorModel *model, QGraphicsItem *parent) | |
Properties | |
QSizeF | viewportSize |
QRectF | range |
QPointF | position |
MPositionIndicator visualizes a position indicator. It is typically used by MPannableViewport (which automatically creates one) to show the panning position but works also separately.
The size of MPositionIndicator is set by the layout it is in but it only draws on the area near the edges of its area.
MPositionIndicator slots setViewportSize, setRange and setPosition need to be called when size of viewport, panned area inside the viewport or panning position changes.
MPositionIndicator is a non-interactive widget. It only shows the current position, and it doesn't react to mouse events.
MPositionIndicator::MPositionIndicator | ( | QGraphicsItem * | parent = 0 |
) |
Constructs a MPositionIndicator with the specified panning direction and parent.
MPositionIndicator::~MPositionIndicator | ( | ) | [virtual] |
Destructs the MPositionIndicator.
MPositionIndicator::MPositionIndicator | ( | MPositionIndicatorPrivate * | dd, | |
MPositionIndicatorModel * | model, | |||
QGraphicsItem * | parent | |||
) | [protected] |
QPointF MPositionIndicator::position | ( | ) | const |
Returns the latest stored current position of the panned widget.
QRectF MPositionIndicator::range | ( | ) | const |
Returns the latest stored size of the panned range (normally the size of the widget that is being panned, see MPannableViewport).
void MPositionIndicator::setPosition | ( | const QPointF & | newPosition | ) | [slot] |
Updates the position data.
void MPositionIndicator::setRange | ( | const QRectF & | newRange | ) | [slot] |
Updates the panned range data.
void MPositionIndicator::setViewportSize | ( | const QSizeF & | newViewportSize | ) | [slot] |
Updates the viewport size data.
QSizeF MPositionIndicator::viewportSize | ( | ) | const |
Returns the latest stored size information of the pannable viewport to which the position indicator is attached to.
QPointF MPositionIndicator::position [read, write] |
QRectF MPositionIndicator::range [read, write] |
QSizeF MPositionIndicator::viewportSize [read, write] |
Copyright © 2010 Nokia Corporation | MeeGo Touch |