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

MSpinnerView Class Reference

Spinner view for MProgressIndicator. More...

Inherits MWidgetView.

List of all members.

Public Member Functions

 MSpinnerView (MProgressIndicator *controller)
virtual ~MSpinnerView ()

Protected Slots

virtual void updateData (const QList< const char * > &modifications)

Protected Member Functions

virtual void drawContents (QPainter *painter, const QStyleOptionGraphicsItem *option) const
virtual void setupModel ()
virtual void applyStyle ()

Protected Attributes

MSpinnerViewPrivate *const d_ptr

Detailed Description

Spinner view for MProgressIndicator.

Overview

Spinner rotates clockwise indefinitely until the process is finished or interrupted. Spinner is used only for unknown durations. It can can be placed anywhere in UI and also on top of other UI components to indicate ongoing processes. It should be used when the available space is limited. It can be used to indicate e.g. scanning or refreshing

circular_progress.png
Progress indicator with spinner view.

Interactions

Spinner is always non-interactive.

Open issues

See also:
MProgressIndicator MProgressIndicatorModel MSpinnerStyle

Constructor & Destructor Documentation

MSpinnerView::MSpinnerView ( MProgressIndicator controller  ) 

Constructor.

Parameters:
controller Pointer to the progressindicator's controller
MSpinnerView::~MSpinnerView (  )  [virtual]

Destructor.


Member Function Documentation

void MSpinnerView::applyStyle (  )  [protected, virtual]

Updates MSpinnerView class instance when current style is changed.

Called when MSpinnerStyle class instance is changed (usually) during initialization.

Reimplemented from MWidgetView.

void MSpinnerView::drawContents ( QPainter painter,
const QStyleOptionGraphicsItem option 
) const [protected, virtual]

Draws the contents for this view.

Reimplemented from MWidgetView.

void MSpinnerView::setupModel (  )  [protected, virtual]

Updates MSpinnerView class instance when current model is changed.

Reimplemented from MWidgetView.

void MSpinnerView::updateData ( const QList< const char * > &  modifications  )  [protected, virtual, slot]

Updates MSpinnerView class instance when some component of underlying model is modified.

Parameters:
modifications List containing the names of modified model components.

Reimplemented from MWidgetView.


Member Data Documentation

MSpinnerViewPrivate* const MSpinnerView::d_ptr [protected]

Reimplemented from MWidgetView.


Copyright © 2010 Nokia Corporation
MeeGo Touch