mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontaineralbums.cpp
changeset 48 af3740e3753f
parent 41 ea59c434026a
child 51 560ce2306a17
--- a/mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontaineralbums.cpp	Tue Jul 06 14:13:36 2010 +0300
+++ b/mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontaineralbums.cpp	Wed Aug 18 09:46:20 2010 +0300
@@ -140,10 +140,9 @@
 /*!
  Slot to be called when scrolling ends in media wall and an album is centered.
  */
-void MpCollectionContainerAlbums::albumCentered()
+void MpCollectionContainerAlbums::albumCentered( const QModelIndex &index )
 {
     TX_ENTRY
-    QModelIndex index = mTBone->currentIndex();
     if ( mCurrentAlbumIndex != index.row() ) {
         // Prevent reloading if user just moves the center album a little
         // and the same album re-centers.
@@ -295,12 +294,10 @@
             HbIcon defaultIcon( "qtg_large_album_art" );
             defaultIcon.setSize(mTBone->itemSize());
             mTBone->setDefaultImage( defaultIcon.pixmap().toImage() );
-            mTBone->setTitleFontSpec( HbFontSpec(HbFontSpec::Primary) );
-            mTBone->setDescriptionFontSpec( HbFontSpec(HbFontSpec::Secondary) );
             mTBone->setScrollBarPolicy( HgWidget::ScrollBarAlwaysOff );
             mTBone->enableReflections(true);
             connect( mTBone, SIGNAL(scrollingStarted()), this, SLOT(scrollingStarted()) );
-            connect( mTBone, SIGNAL(scrollingEnded()), this, SLOT(albumCentered()) );
+            connect( mTBone, SIGNAL(animationAboutToEnd(QModelIndex)), this, SLOT(albumCentered(QModelIndex)) );
         }
     }
     else {