[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Jeff Mitchell <kde-dev () emailgoeshere ! com>
Date:       2007-01-01 1:56:09
Message-ID: 1167616569.024620.661.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 618301 by mitchell:

Revision 616254 broke the "immediately show new fetched covers" code (got rid of \
setPixmap).  Updated the code to handle the new cover-setting functions.


 M  +7 -0      collectionbrowser.cpp  
 M  +1 -0      collectionbrowser.h  
 M  +1 -1      collectiondb.cpp  


--- trunk/extragear/multimedia/amarok/src/collectionbrowser.cpp #618300:618301
@@ -4327,6 +4327,13 @@
 }
 
 void
+CollectionItem::refreshPixmap()
+{
+    loadCovers( true );
+    setup();
+}
+
+void
 CollectionItem::setup()
 {
     if ( isOpen() && !m_coverImages.isEmpty() )
--- trunk/extragear/multimedia/amarok/src/collectionbrowser.h #618300:618301
@@ -171,6 +171,7 @@
 
         /// convenience functions
         CollectionView *listView() const { return reinterpret_cast<CollectionView*>( \
KListViewItem::listView() ); } +        void refreshPixmap();
 
     private:
         friend class CollectionView;
--- trunk/extragear/multimedia/amarok/src/collectiondb.cpp #618300:618301
@@ -4956,7 +4956,7 @@
         if( it.data() == fetcher )
         {
             if( it.key()->isOpen() )
-                static_cast<CollectionItem*>(it.key())->setPixmap( 0, QPixmap() );
+                static_cast<CollectionItem*>(it.key())->refreshPixmap();
             itemCoverMap->erase( it );
         }
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic