Adjust animation time in cube switch: the complete animation has a fixed time, not the single steps. That fixes a regression compared to 4.2.

svn path=/trunk/KDE/kdebase/workspace/; revision=971743
icc-effect-5.14.5
Martin Gräßlin 2009-05-23 11:51:38 +00:00
parent 82e1c0741e
commit 9766a94216
2 changed files with 4 additions and 2 deletions

View File

@ -50,9 +50,9 @@ bool CubeSlideEffect::supported()
void CubeSlideEffect::reconfigure( ReconfigureFlags )
{
KConfigGroup conf = effects->effectConfig( "CubeSlide" );
int rotationDuration = animationTime( conf, "RotationDuration", 500 );
rotationDuration = conf.readEntry( "RotationDuration", 500 );
timeLine.setCurveShape( TimeLine::EaseInOutCurve );
timeLine.setDuration( rotationDuration );
timeLine.setDuration( animationTime( rotationDuration ) );
dontSlidePanels = conf.readEntry( "DontSlidePanels", true );
dontSlideStickyWindows = conf.readEntry( "DontSlideStickyWindows", false );
usePagerLayout = conf.readEntry( "UsePagerLayout", true );
@ -566,6 +566,7 @@ void CubeSlideEffect::desktopChanged( int old )
}
}
}
timeLine.setDuration( animationTime( (float)rotationDuration / (float)slideRotations.count() ) );
if( activate )
{
if( slideRotations.count() == 1 )

View File

@ -64,6 +64,7 @@ class CubeSlideEffect
bool dontSlidePanels;
bool dontSlideStickyWindows;
bool usePagerLayout;
int rotationDuration;
};
}