src/hbwidgets/sliders/hbslidercontrol.cpp
changeset 23 e6ad4ef83b23
parent 21 4633027730f5
child 28 b7da29130b0e
--- a/src/hbwidgets/sliders/hbslidercontrol.cpp	Wed Aug 18 10:05:37 2010 +0300
+++ b/src/hbwidgets/sliders/hbslidercontrol.cpp	Thu Sep 02 20:44:51 2010 +0300
@@ -302,7 +302,7 @@
   Protected constructor for initialization from derived ctor.
 */
 HbSliderControl::HbSliderControl(HbSliderControlPrivate &dd,QGraphicsItem *parent)
-	:HbAbstractSliderControl(dd,parent)
+    :HbAbstractSliderControl(dd,parent)
 {
 }
 
@@ -906,7 +906,7 @@
             case Qt::GestureStarted: 
             case Qt::GestureUpdated:{
                 QPointF startPoint = event->mapToGraphicsScene(panGesture->offset()+panGesture->startPos( ) );
-				//if the position is on thumb , then start moving the thumb
+                //if the position is on thumb , then start moving the thumb
                 if( ( d->onHandle( startPoint) && d->grooveTouchArea->sceneBoundingRect( ).contains( startPoint))||isSliderDown( ) ) {
                     qreal handlePos = 0;
                     qreal span = 0;
@@ -966,7 +966,7 @@
                 updatePrimitives( );
                 d->handle->updatePrimitives();
                 d->handleMoving = false;
-				int pressValue = sliderPosition();
+                int pressValue = sliderPosition();
                 setRepeatAction( SliderNoAction,static_cast<int>( pressValue ) );
                 event->ignore();
                 HbWidgetFeedback::triggered(this, Hb::InstantReleased);
@@ -989,21 +989,21 @@
         if (!isEnabled() ) {
             return false;
         }
-	    if (event->type() == QEvent::Gesture){
+        if (event->type() == QEvent::Gesture){
             gestureEvent( (QGestureEvent *) (event));
             return true;
         }
     }
     else if ( obj == d->handle) {
         event->ignore();
-	    if (event->type() == QEvent::Gesture){
+        if (event->type() == QEvent::Gesture){
             QGestureEvent *gestureEvent = static_cast<QGestureEvent *> (event);
             foreach(QGesture *g, gestureEvent->gestures()) {
                 gestureEvent->ignore(g);
             }
         }
     }
-	return false;
+    return false;
 }
 
 
@@ -1131,26 +1131,26 @@
 QGraphicsItem* HbSliderControl::handleItem( ) const
 {
     Q_D( const HbSliderControl );
-	if(d->handle) {
-		return d->handle->handleItem();
-	}
-	return NULL;
+    if(d->handle) {
+        return d->handle->handleItem();
+    }
+    return NULL;
 }
 
 void HbSliderControl::setHandleVisible(bool isVisible)
 {
     Q_D( HbSliderControl );
-	if(isVisible) {
-		d->handle->setVisible(true);
-	} else {
-		d->handle->setVisible(false);
-	}
+    if(isVisible) {
+        d->handle->setVisible(true);
+    } else {
+        d->handle->setVisible(false);
+    }
 }
 
 bool HbSliderControl::handleVisible( ) const
 {
     Q_D( const HbSliderControl );
-	return d->handle->isVisible();
+    return d->handle->isVisible();
 }
  
 /*!