1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

draw selection rect in settings dialog on windows too. hope it looks okay...

This commit is contained in:
Leo Franchi
2011-08-15 00:20:17 -04:00
parent ae1095217c
commit b8394003e8

View File

@@ -19,7 +19,7 @@ void SettingsListDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
initStyleOption( &opt, QModelIndex() );
qApp->style()->drawControl( QStyle::CE_ItemViewItem, &opt, painter );
#ifdef Q_OS_MAC
#if defined(Q_WS_MAC) || defined(Q_WS_WIN)
// On mac draw our own selection rect as we don't get one from osx (around the whole icon or around just text)
if ( opt.state & QStyle::State_Selected )
{