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
This commit is contained in:
Martin Gräßlin 2009-05-28 09:13:14 +00:00
parent fd5fa07507
commit f9b3022553

View file

@ -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 )