From ecd4aeb9656aab11071b917a80bdd99163bcd17a Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 26 May 2012 18:07:50 +0200 Subject: [PATCH] * Make the hover fade a bit more noticeable. Looks nice imo. --- src/libtomahawk/playlist/AlbumItemDelegate.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libtomahawk/playlist/AlbumItemDelegate.cpp b/src/libtomahawk/playlist/AlbumItemDelegate.cpp index 0f262f44e..d1f6419df 100644 --- a/src/libtomahawk/playlist/AlbumItemDelegate.cpp +++ b/src/libtomahawk/playlist/AlbumItemDelegate.cpp @@ -44,7 +44,7 @@ #include "utils/Logger.h" namespace { - static const int FADE_DURATION = 75; + static const int FADE_DURATION = 250; }; @@ -125,10 +125,8 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, fader->setSize( r.size() ); const QPixmap cover = fader->currentPixmap(); - painter->drawPixmap( r, cover ); - qreal opacity = -1.; if ( m_hoverFaders.contains( index ) ) { @@ -140,7 +138,6 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, opacity = 0.35; } - if ( opacity > -1. ) { painter->save();