Change the timeline curve shape depending on the number of rotations. If there is only one rotation it is an EaseInOut curve, if there are more than one rotations first is an EaseIn, last an EaseOut all other Linear curves.
svn path=/trunk/KDE/kdebase/workspace/; revision=928255icc-effect-5.14.5
parent
05a97d39c8
commit
6a671fa2f2
|
@ -413,6 +413,10 @@ void CubeSlideEffect::postPaintScreen()
|
|||
break;
|
||||
}
|
||||
timeLine.setProgress( 0.0 );
|
||||
if( slideRotations.count() == 1 )
|
||||
timeLine.setCurveShape( TimeLine::EaseOutCurve );
|
||||
else
|
||||
timeLine.setCurveShape( TimeLine::LinearCurve );
|
||||
if( slideRotations.empty() )
|
||||
{
|
||||
effects->setActiveFullScreenEffect( 0 );
|
||||
|
@ -494,6 +498,10 @@ void CubeSlideEffect::desktopChanged( int old )
|
|||
}
|
||||
if( activate )
|
||||
{
|
||||
if( slideRotations.count() == 1 )
|
||||
timeLine.setCurveShape( TimeLine::EaseInOutCurve );
|
||||
else
|
||||
timeLine.setCurveShape( TimeLine::EaseInCurve );
|
||||
effects->setActiveFullScreenEffect( this );
|
||||
timeLine.setProgress( 0.0 );
|
||||
front_desktop = old;
|
||||
|
|
Loading…
Reference in New Issue