]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/icon_view.cpp
Qt: iconView delegate: encode PLModel::IsCurrent(QModelIndex) into cache key
[vlc] / modules / gui / qt4 / components / playlist / icon_view.cpp
index 856cbd65d318665d2a4e4c8b1d61f4c24a8ccb59..7e63ebe33e1aeeb57c21a714424153dba55fb5f9 100644 (file)
@@ -82,7 +82,8 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
     // picture where all the rendering happens and which will be cached
     QPixmap pix;
 
-    QString key = title + artist + artUrl;
+    QString key = title + artist + artUrl
+                  + QString( index.data( PLModel::IsCurrentRole ).toInt() );
     if(QPixmapCache::find( key, pix ))
     {
         // cool, we found it in the cache