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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/kernel
From:       Rafael Fernández López <ereslibre () kde ! org>
Date:       2008-11-19 21:03:06
Message-ID: 1227128586.440047.21103.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 886700 by ereslibre:

Yes, yes... my memory is very bad. Didn't remember this fake KComponentData that was \
created exactly for this situation (when we didn't have a KComponentData and needed \
to read some configuration bit). Thanks to Pino and Maksim for reminding me that my \
memory is bad :)

 M  +3 -4      kstyle.cpp  


--- trunk/KDE/kdelibs/kdeui/kernel/kstyle.cpp #886699:886700
@@ -400,10 +400,9 @@
     if (QAbstractItemView *itemView = qobject_cast<QAbstractItemView*>(w) ) {
         itemView->viewport()->setAttribute(Qt::WA_Hover);
 
-        if (KGlobal::hasMainComponent()) { // are we on a KDE app ?
-            if (QTreeView *treeView = qobject_cast<QTreeView*>(w)) {
-                treeView->setAnimated(KGlobalSettings::graphicEffectsLevel() & \
                KGlobalSettings::SimpleAnimationEffects);
-            }
+        if (QTreeView *treeView = qobject_cast<QTreeView*>(w)) {
+            KGlobalSettings::GraphicEffects graphicEffects = \
(KGlobalSettings::GraphicEffects) d->m_componentData.config()->group("KDE-Global GUI \
Settings").readEntry("GraphicEffectsLevel", (int) KGlobalSettings::NoEffects); +      \
treeView->setAnimated(graphicEffects & KGlobalSettings::SimpleAnimationEffects);  }
     }
 


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

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