From b8394003e8ecc7a156c6491931f33d513a7a97c3 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 15 Aug 2011 00:20:17 -0400 Subject: [PATCH] draw selection rect in settings dialog on windows too. hope it looks okay... --- src/settingslistdelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settingslistdelegate.cpp b/src/settingslistdelegate.cpp index 43db82218..f5ece37c3 100644 --- a/src/settingslistdelegate.cpp +++ b/src/settingslistdelegate.cpp @@ -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 ) {