[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kio/kio
From:       Rafael Fernández López <ereslibre () kde ! org>
Date:       2009-08-25 1:04:59
Message-ID: 1251162299.991641.17899.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic