From fbdf53de5002af8bd989a84333015ffa98717215 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 12 Jun 2011 18:06:29 +0200 Subject: [PATCH] * Made sure we always restore the painter after using it. --- src/libtomahawk/playlist/playlistitemdelegate.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/playlist/playlistitemdelegate.cpp b/src/libtomahawk/playlist/playlistitemdelegate.cpp index 23c8280c7..7271e1338 100644 --- a/src/libtomahawk/playlist/playlistitemdelegate.cpp +++ b/src/libtomahawk/playlist/playlistitemdelegate.cpp @@ -169,15 +169,14 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt } // Paint Now Playing Frame - return; //FIXME - { +/* { QRect r = QRect( 3, opt.rect.y() + 1, m_view->viewport()->width() - 6, opt.rect.height() - 2 ); painter->setPen( opt.palette.highlight().color() ); QPen pen = painter->pen(); pen.setWidth( 1.0 ); painter->setPen( pen ); painter->drawRoundedRect( r, 3.0, 3.0 ); - } + }*/ } painter->restore(); }