mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* No need to set black font twice.
This commit is contained in:
@@ -154,7 +154,6 @@ SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem
|
|||||||
f.setBold( true );
|
f.setBold( true );
|
||||||
// f.setPointSize( 10 );
|
// f.setPointSize( 10 );
|
||||||
painter->setFont( f );
|
painter->setFont( f );
|
||||||
painter->setPen( Qt::black );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QRect textRect = opt.rect.adjusted( iconRect.width() + 22, 0, -32, 0 );
|
QRect textRect = opt.rect.adjusted( iconRect.width() + 22, 0, -32, 0 );
|
||||||
@@ -163,7 +162,7 @@ SourceDelegate::paintStandardItem( QPainter* painter, const QStyleOptionViewItem
|
|||||||
QTextOption to( Qt::AlignVCenter );
|
QTextOption to( Qt::AlignVCenter );
|
||||||
to.setWrapMode( QTextOption::NoWrap );
|
to.setWrapMode( QTextOption::NoWrap );
|
||||||
|
|
||||||
if ( !enabled )
|
if ( !enabled && !selected )
|
||||||
{
|
{
|
||||||
painter->setPen( opt.palette.color( QPalette::Disabled, QPalette::Text ) );
|
painter->setPen( opt.palette.color( QPalette::Disabled, QPalette::Text ) );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user