From kde-commits Wed Nov 19 21:03:06 2008 From: =?utf-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Wed, 19 Nov 2008 21:03:06 +0000 To: kde-commits Subject: KDE/kdelibs/kdeui/kernel Message-Id: <1227128586.440047.21103.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122712860124008 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(w) ) { itemView->viewport()->setAttribute(Qt::WA_Hover); - if (KGlobal::hasMainComponent()) { // are we on a KDE app ? - if (QTreeView *treeView = qobject_cast(w)) { - treeView->setAnimated(KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects); - } + if (QTreeView *treeView = qobject_cast(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); } }