From f9b30225535b14611ecfdd8e34c30a6240e8cde7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 28 May 2009 09:13:14 +0000 Subject: [PATCH] Correcting error introduced with last commit. AnimationTime() has to be used when reading the value from config file to work correctly. svn path=/trunk/KDE/kdebase/workspace/; revision=973940 --- effects/cube/cubeslide.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/cube/cubeslide.cpp b/effects/cube/cubeslide.cpp index e17bd8988b..c16d41d833 100644 --- a/effects/cube/cubeslide.cpp +++ b/effects/cube/cubeslide.cpp @@ -50,9 +50,9 @@ bool CubeSlideEffect::supported() void CubeSlideEffect::reconfigure( ReconfigureFlags ) { KConfigGroup conf = effects->effectConfig( "CubeSlide" ); - rotationDuration = conf.readEntry( "RotationDuration", 500 ); + rotationDuration = animationTime( conf, "RotationDuration", 500 ); timeLine.setCurveShape( TimeLine::EaseInOutCurve ); - timeLine.setDuration( animationTime( rotationDuration ) ); + timeLine.setDuration( rotationDuration ); dontSlidePanels = conf.readEntry( "DontSlidePanels", true ); dontSlideStickyWindows = conf.readEntry( "DontSlideStickyWindows", false ); usePagerLayout = conf.readEntry( "UsePagerLayout", true ); @@ -566,7 +566,7 @@ void CubeSlideEffect::desktopChanged( int old ) } } } - timeLine.setDuration( animationTime( (float)rotationDuration / (float)slideRotations.count() ) ); + timeLine.setDuration( (float)rotationDuration / (float)slideRotations.count() ); if( activate ) { if( slideRotations.count() == 1 )