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 )