diff -r 0f0f3f26f787 -r 383b67fbdb11 ui/views/slideshowview/src/glxslideshowwidget.cpp --- a/ui/views/slideshowview/src/glxslideshowwidget.cpp Fri Aug 06 20:44:25 2010 +0530 +++ b/ui/views/slideshowview/src/glxslideshowwidget.cpp Mon Aug 23 18:06:16 2010 +0530 @@ -53,7 +53,8 @@ mItemIndex( 1 ), mSlideTimer( NULL ), mModel( NULL ), - mSlideShowItemCount( 0 ) + mSlideShowItemCount( 0 ), + mIsAutoMoving ( false ) { TRACER("GlxSlideShowWidget::GlxSlideShowWidget()"); mSettings = GlxSettingInterface::instance() ; //no owner ship @@ -350,6 +351,7 @@ mModel->setData( mModel->index( 0, 0 ), mSelIndex[ mItemIndex ], GlxVisualWindowIndex ); setNextItemIcon(); startSlideShow(); + mIsAutoMoving = false; emit indexchanged(); // on left swipe } @@ -364,6 +366,7 @@ mModel->setData( mModel->index( 0, 0 ), mSelIndex[ mItemIndex ], GlxVisualWindowIndex ); setPreItemIcon(); startSlideShow(); + mIsAutoMoving = false; emit indexchanged(); // on right swipe } @@ -378,10 +381,10 @@ } } - if (QPanGesture *panningGesture = qobject_cast(event->gesture(Qt::PanGesture))) { - HbPanGesture *hbPanGesture = qobject_cast(panningGesture); + if ( QPanGesture *panningGesture = qobject_cast( event->gesture( Qt::PanGesture ) ) ) { + HbPanGesture *hbPanGesture = qobject_cast( panningGesture ); if ( hbPanGesture ) { - if( hbPanGesture->state() == Qt::GestureFinished ) { + if( hbPanGesture->state() == Qt::GestureFinished && mIsAutoMoving == FALSE ) { QPointF delta( hbPanGesture->sceneDelta() ); if ( delta.x() > 0 ) { rightGesture( delta.x() ); @@ -464,11 +467,12 @@ if ( mSlideShowItemCount <= 1 || mEffectEngine->isEffectRuning( mItemList ) ) { return ; } - + mSlideTimer->stop(); HbEffect::start( mIconItems[mItemIndex], QString("HbIconItem"), move ); mIconItems[nextIndex]->setPos( posX, mScreenRect.top()); mIconItems[nextIndex]->setOpacity(1); + mIsAutoMoving = true; HbEffect::start(mIconItems[nextIndex], QString("HbIconItem"), QString("Move"), this, callBack ); }