--- a/radioapp/radiowidgets/src/radiostripbase.cpp Fri Apr 16 14:58:55 2010 +0300
+++ b/radioapp/radiowidgets/src/radiostripbase.cpp Mon May 03 12:31:41 2010 +0300
@@ -39,8 +39,7 @@
mCurrentIndex( 0 ),
mPressedIndex( 0 ),
mStripLength( 0 ),
- mContentsLength( 0 ),
- mBackgroundImage( 0 )
+ mContentsLength( 0 )
{
setClampingStyle( HbScrollArea::NoClamping );
setScrollDirections( Qt::Horizontal );
@@ -69,29 +68,6 @@
/*!
*
*/
-void RadioStripBase::setBackground( const HbIcon& background )
-{
- // Create background image for the entire widget
- mBackground = background;
- if ( !mBackgroundImage ) {
- mBackgroundImage = new QGraphicsPixmapItem( this );
- }
- mBackgroundImage->setPixmap( mBackground.pixmap() );
- mBackgroundImage->setOffset( QPointF( 0.0, 0.0 ) );
- mBackgroundImage->setZValue( -10.0 );
-}
-
-/*!
- *
- */
-HbIcon RadioStripBase::background() const
-{
- return mBackground;
-}
-
-/*!
- *
- */
void RadioStripBase::setAutoScrollTime( const int time )
{
mAutoScrollTime = time;
@@ -218,10 +194,7 @@
*/
void RadioStripBase::resizeEvent( QGraphicsSceneResizeEvent* event )
{
- if ( mBackgroundImage ) {
- QPixmap background = mBackgroundImage->pixmap().scaledToWidth( event->newSize().width() );
- mBackgroundImage->setPixmap( background );
- }
+ Q_UNUSED( event );
populateAndLayout();
}