1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-19 07:22:32 +02:00

* Removed obsolete code.

This commit is contained in:
Christian Muehlhaeuser 2014-08-28 13:34:06 +02:00
parent cfd677ccb6
commit a74e442bb5

View File

@ -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 );