diff options
| author | Peter Penz <[email protected]> | 2008-03-12 17:40:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-03-12 17:40:46 +0000 |
| commit | bcb9028a5fa4fc5894e8bba6821c019bde1cdf75 (patch) | |
| tree | b443ed9c915ccf9e01b368c0417bcfbf5db99a19 | |
| parent | a16a52401b27b35f1bf7dcd88a797320afbf073a (diff) | |
respect the graphic effects level before doing a fade-in of the selection toggle
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=784872
| -rw-r--r-- | src/selectiontoggle.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/selectiontoggle.cpp b/src/selectiontoggle.cpp index fdae03e2b..a2abc49c2 100644 --- a/src/selectiontoggle.cpp +++ b/src/selectiontoggle.cpp @@ -19,6 +19,7 @@ #include "selectiontoggle.h" +#include <kglobalsettings.h> #include <kicon.h> #include <kiconloader.h> #include <kiconeffect.h> @@ -177,7 +178,10 @@ void SelectionToggle::startFading() { Q_ASSERT(m_fadingTimeLine == 0); - m_fadingTimeLine = new QTimeLine(1500, this); + const bool animate = KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects; + const int duration = animate ? 1500 : 1; + + m_fadingTimeLine = new QTimeLine(duration, this); connect(m_fadingTimeLine, SIGNAL(frameChanged(int)), this, SLOT(setFadingValue(int))); m_fadingTimeLine->setFrameRange(0, 255); |
