Home · All Classes · Main Classes · Deprecated |
Standard view is used to visualize sliders and seekbars. More...
Inherits MWidgetView.
Public Member Functions | |
MSliderView (MSlider *controller) | |
virtual | ~MSliderView () |
Protected Member Functions | |
virtual void | applyStyle () |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
virtual void | cancelEvent (MCancelEvent *event) |
virtual void | swipeGestureEvent (QGestureEvent *event, QSwipeGesture *gesture) |
virtual void | setupModel () |
virtual void | updateData (const QList< const char * > &modifications) |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | hideEvent (QHideEvent *event) |
Protected Attributes | |
MSliderViewPrivate *const | d_ptr |
Standard view is used to visualize sliders and seekbars.
Slider view class renders slider and seekbars.
Outlook of sliders and seekbars can be changed using the styling attributes defined in MSliderStyle and MWidgetStyle.
A slider (seekbar) can be in one of the following functional states:
MSliderView::MSliderView | ( | MSlider * | controller | ) |
Constructs toolbar view.
controller | Pointer to the controller. |
MSliderView::~MSliderView | ( | ) | [virtual] |
Destructs the view.
void MSliderView::applyStyle | ( | ) | [protected, virtual] |
Updates MSliderView class instance when current style is changed.
Called when MSliderStyle class instance is changed (usually) during initialization.
Reimplemented from MWidgetView.
void MSliderView::cancelEvent | ( | MCancelEvent * | event | ) | [protected, virtual] |
void MSliderView::hideEvent | ( | QHideEvent * | event | ) | [protected, virtual] |
Timer event handler.
Called when timer event occures.
void MSliderView::mouseMoveEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Mouse move event handler.
If slider is in pressed State drags slider thumb. As slider handle is dragged MSlider::valueChanged(int) signal is emitted.
Reimplemented from MWidgetView.
void MSliderView::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Mouse press event handler.
Accepted when clicking onto slider groove. Ignored clicking outside of slider groove. Timer event will be generated which set slider state to Pressed
Reimplemented from MWidgetView.
void MSliderView::mouseReleaseEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected, virtual] |
Mouse press event handler.
Releases slider handle. Slider falls back into Released state and MSlider::sliderReleased() signal is emitted.
Reimplemented from MWidgetView.
void MSliderView::setupModel | ( | ) | [protected, virtual] |
Updates MSliderView class instance when current model is changed.
Called when MSliderModel (MSeekBarModel) class instance is changed (usually) during initialization.
Reimplemented from MWidgetView.
void MSliderView::swipeGestureEvent | ( | QGestureEvent * | event, | |
QSwipeGesture * | gesture | |||
) | [protected, virtual] |
Swipe gesture event handler.
Accepts swipe events, so they are not sent to the parent widgets while the user is dragging the slider..
Reimplemented from MWidgetView.
void MSliderView::timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
void MSliderView::updateData | ( | const QList< const char * > & | modifications | ) | [protected, virtual] |
Updates MSliderView class instance when some component of underlying model is modified.
modifications | List containing the names of modified model components. |
Called when some field of underlying MSliderModel (MSeekBarModel) class instance is modified and view shuold reflect that modification.
Reimplemented from MWidgetView.
MSliderViewPrivate* const MSliderView::d_ptr [protected] |
Reimplemented from MWidgetView.
Copyright © 2010 Nokia Corporation | MeeGo Touch |