mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Removed obsolete code.
This commit is contained in:
@@ -185,16 +185,12 @@ GridItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
|||||||
QFont smallFont = font;
|
QFont smallFont = font;
|
||||||
smallFont.setPointSize( TomahawkUtils::defaultFontSize() );
|
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 );
|
QRect textRect = option.rect.adjusted( 0, r.height() + 8, 0, 0 );
|
||||||
bool oneLiner = false;
|
bool oneLiner = false;
|
||||||
if ( bottom.isEmpty() )
|
if ( bottom.isEmpty() )
|
||||||
oneLiner = true;
|
oneLiner = true;
|
||||||
|
|
||||||
|
painter->setPen( TomahawkStyle::SELECTION_FOREGROUND );
|
||||||
painter->setFont( font );
|
painter->setFont( font );
|
||||||
painter->setPen( Qt::black );
|
painter->setPen( Qt::black );
|
||||||
painter->setOpacity( 0.8 );
|
painter->setOpacity( 0.8 );
|
||||||
|
Reference in New Issue
Block a user