mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontaineralbums.cpp
changeset 43 0f32e550d9d8
parent 37 eb79a7c355bf
child 51 560ce2306a17
--- a/mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontaineralbums.cpp	Fri Jun 25 17:21:37 2010 -0500
+++ b/mpviewplugins/mpcollectionviewplugin/src/mpcollectioncontaineralbums.cpp	Fri Jul 09 16:27:03 2010 -0500
@@ -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 {