use QPropertyAnimation instead of QTimeLine to handle transitions
svn path=/trunk/KDE/kdebase/workspace/; revision=1069986
This commit is contained in:
parent
42b531ac78
commit
e49597ecd3
3 changed files with 4 additions and 3 deletions
|
@ -72,7 +72,7 @@ namespace Oxygen
|
|||
glowAnimation().data()->setPropertyName( "glowIntensity" );
|
||||
|
||||
// set curve shape. Warning: this is not portable to Qt Kinetic
|
||||
glowAnimation().data()->setCurveShape( Animation::EaseInOutCurve );
|
||||
glowAnimation().data()->setEasingCurve( QEasingCurve::InOutQuad );
|
||||
|
||||
// setup connections
|
||||
connect( glowAnimation().data(), SIGNAL( valueChanged( const QVariant& ) ), SLOT( update( void ) ) );
|
||||
|
|
|
@ -120,7 +120,8 @@ namespace Oxygen
|
|||
glowAnimation().data()->setEndValue( 1.0 );
|
||||
glowAnimation().data()->setTargetObject( this );
|
||||
glowAnimation().data()->setPropertyName( "glowIntensity" );
|
||||
glowAnimation().data()->setCurveShape( Animation::EaseInOutCurve );
|
||||
glowAnimation().data()->setEasingCurve( QEasingCurve::InOutQuad );
|
||||
|
||||
connect( glowAnimation().data(), SIGNAL( valueChanged( const QVariant& ) ), widget(), SLOT( update( void ) ) );
|
||||
connect( glowAnimation().data(), SIGNAL( finished( void ) ), widget(), SLOT( update( void ) ) );
|
||||
connect( glowAnimation().data(), SIGNAL( finished() ), this, SLOT( clearForceActive() ) );
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace Oxygen
|
|||
animation().data()->setEndValue( 1 );
|
||||
animation().data()->setTargetObject( this );
|
||||
animation().data()->setPropertyName( "opacity" );
|
||||
animation().data()->setCurveShape( Animation::EaseInOutCurve );
|
||||
animation().data()->setEasingCurve( QEasingCurve::InOutQuad );
|
||||
connect( animation().data(), SIGNAL( valueChanged( const QVariant& ) ), SLOT( updatePixmaps( void ) ) );
|
||||
connect( animation().data(), SIGNAL( finished( void ) ), SLOT( updatePixmaps( void ) ) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue