Added reconfigure() to slide effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=869464
This commit is contained in:
Lucas Murray 2008-10-09 05:31:04 +00:00
parent 5b9067fb84
commit 2f010abe87
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,11 @@ SlideEffect::SlideEffect()
: slide( false ) : slide( false )
{ {
mTimeLine.setCurveShape(TimeLine::EaseInOutCurve); mTimeLine.setCurveShape(TimeLine::EaseInOutCurve);
reconfigure( ReconfigureAll );
}
void SlideEffect::reconfigure( ReconfigureFlags )
{
mTimeLine.setDuration( animationTime( 250 )); mTimeLine.setDuration( animationTime( 250 ));
} }

View file

@ -34,6 +34,7 @@ class SlideEffect
Q_OBJECT Q_OBJECT
public: public:
SlideEffect(); SlideEffect();
virtual void reconfigure( ReconfigureFlags );
virtual void prePaintScreen( ScreenPrePaintData& data, int time ); virtual void prePaintScreen( ScreenPrePaintData& data, int time );
virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data ); virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );
virtual void postPaintScreen(); virtual void postPaintScreen();