1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 00:12:06 +02:00

Don't paint selected text as white on osx, there's no selection rect.

This commit is contained in:
Leo Franchi 2011-07-22 13:13:00 -04:00
parent b194d8c9cd
commit ee3fb6b47e

View File

@ -61,11 +61,12 @@ AlbumItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option,
initStyleOption( &opt, QModelIndex() );
qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter );
#ifndef Q_OS_MAC
if ( option.state & QStyle::State_Selected )
{
opt.palette.setColor( QPalette::Text, opt.palette.color( QPalette::HighlightedText ) );
}
#endif
painter->save();
// painter->setRenderHint( QPainter::Antialiasing );