mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
paint album selection rect on windows
This commit is contained in:
parent
33a3ec4c4c
commit
cd8e187bfe
@ -71,9 +71,7 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
||||
|
||||
if ( option.state & QStyle::State_Selected )
|
||||
{
|
||||
#ifndef Q_OS_MAC
|
||||
opt.palette.setColor( QPalette::Text, opt.palette.color( QPalette::HighlightedText ) );
|
||||
#else
|
||||
#if defined(Q_WS_MAC) || defined(Q_WS_WIN)
|
||||
painter->save();
|
||||
painter->setRenderHint( QPainter::Antialiasing );
|
||||
|
||||
@ -85,6 +83,8 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
|
||||
painter->drawPath( border );
|
||||
|
||||
painter->restore();
|
||||
#else
|
||||
opt.palette.setColor( QPalette::Text, opt.palette.color( QPalette::HighlightedText ) );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user