From a74e442bb52ff916c51a87ac38eaf0bb8972fe64 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 28 Aug 2014 13:34:06 +0200 Subject: [PATCH] * Removed obsolete code. --- src/libtomahawk/playlist/GridItemDelegate.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libtomahawk/playlist/GridItemDelegate.cpp b/src/libtomahawk/playlist/GridItemDelegate.cpp index e49ea76b8..8cabc5127 100644 --- a/src/libtomahawk/playlist/GridItemDelegate.cpp +++ b/src/libtomahawk/playlist/GridItemDelegate.cpp @@ -185,16 +185,12 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, QFont smallFont = font; smallFont.setPointSize( TomahawkUtils::defaultFontSize() ); - int bottomHeight = QFontMetrics( smallFont ).boundingRect( bottom ).height(); - int topHeight = QFontMetrics( font ).boundingRect( top ).height(); - - painter->setPen( TomahawkStyle::SELECTION_FOREGROUND ); - QRect textRect = option.rect.adjusted( 0, r.height() + 8, 0, 0 ); bool oneLiner = false; if ( bottom.isEmpty() ) oneLiner = true; + painter->setPen( TomahawkStyle::SELECTION_FOREGROUND ); painter->setFont( font ); painter->setPen( Qt::black ); painter->setOpacity( 0.8 );