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:
parent
fd5fa07507
commit
f9b3022553
1 changed files with 3 additions and 3 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue