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
This commit is contained in:
parent
82e1c0741e
commit
9766a94216
2 changed files with 4 additions and 2 deletions
|
@ -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 )
|
||||
|
|
|
@ -64,6 +64,7 @@ class CubeSlideEffect
|
|||
bool dontSlidePanels;
|
||||
bool dontSlideStickyWindows;
|
||||
bool usePagerLayout;
|
||||
int rotationDuration;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue