diff -r 075425b8d9a4 -r 189d20c34778 radioapp/radiowidgets/src/radiostripbase.cpp --- a/radioapp/radiowidgets/src/radiostripbase.cpp Fri Jun 11 13:38:32 2010 +0300 +++ b/radioapp/radiowidgets/src/radiostripbase.cpp Wed Jun 23 18:12:57 2010 +0300 @@ -53,9 +53,6 @@ // mItemParent is used to hold the unused QGraphicsItem's in the pool. It's visibility is set to false // so the visibility of the items doesn't need to be modified. mItemPoolParent->setVisible( false ); - - Radio::connect( this, SIGNAL(scrollPositionChanged(QPointF)), - this, SLOT(scrollPositionChanged(QPointF))); } /*! @@ -217,15 +214,6 @@ } /*! - * Private slot - */ -void RadioStripBase::scrollPositionChanged( QPointF newPosition ) -{ - adjustItems(); - scrollPosChanged( newPosition ); -} - -/*! * */ void RadioStripBase::moveAllItemsToPool() @@ -280,11 +268,7 @@ } } - QRectF contentsRect(0,0,0,0); - contentsRect.setBottom( mItemSize.height() ); - contentsRect.setRight( mContentsLength ); - - mStripContainer->setGeometry( contentsRect ); + mStripContainer->setPreferredSize( mContentsLength, mItemSize.height() ); if ( mCurrentIndex >= 0 ) { @@ -497,3 +481,16 @@ } } } + +/*! + * \reimp + */ +bool RadioStripBase::scrollByAmount( const QPointF& delta ) +{ + bool ret = HbScrollArea::scrollByAmount( delta ); + + adjustItems(); + scrollPosChanged(); + + return ret; +}