From kde-commits Tue Aug 25 01:04:59 2009 From: =?utf-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Tue, 25 Aug 2009 01:04:59 +0000 To: kde-commits Subject: KDE/kdelibs/kio/kio Message-Id: <1251162299.991641.17899.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125116230708388 SVN commit 1015242 by ereslibre: Set the disabled palette color group if the view tell us that we are not enabled M +5 -0 kfileitemdelegate.cpp --- trunk/KDE/kdelibs/kio/kio/kfileitemdelegate.cpp #1015241:1015242 @@ -1154,6 +1154,11 @@ QStyleOptionViewItemV4 opt(option); d->initStyleOption(&opt, index); + if (!(option.state & QStyle::State_Enabled)) + { + opt.palette.setCurrentColorGroup(QPalette::Disabled); + } + // Unset the mouse over bit if we're not drawing the first column if (index.column() > 0) opt.state &= ~QStyle::State_MouseOver;