added "unlockAnimations" method.

svn path=/trunk/KDE/kdebase/workspace/; revision=1134598
This commit is contained in:
Hugo Pereira Da Costa 2010-06-04 16:59:09 +00:00
parent 1ecb757348
commit 1ea223f34c
2 changed files with 6 additions and 3 deletions

View file

@ -90,8 +90,8 @@ namespace Oxygen
if( e->timerId() != animationLockTimer_.timerId() ) if( e->timerId() != animationLockTimer_.timerId() )
{ return QObject::timerEvent( e ); } { return QObject::timerEvent( e ); }
// stop veto // unlock
animationLockTimer_.stop(); unlockAnimations();
if( !isAnimated() ) if( !isAnimated() )
{ {

View file

@ -95,7 +95,6 @@ namespace Oxygen
//!@name animation //!@name animation
//@{ //@{
//! returns true if animations are locked //! returns true if animations are locked
bool isLocked( void ) const bool isLocked( void ) const
{ return animationLockTimer_.isActive(); } { return animationLockTimer_.isActive(); }
@ -108,6 +107,10 @@ namespace Oxygen
void lockAnimations( void ) void lockAnimations( void )
{ animationLockTimer_.start( lockTime_, this ); } { animationLockTimer_.start( lockTime_, this ); }
//! start lock animation timer
void unlockAnimations( void )
{ animationLockTimer_.stop(); }
//! start title transition animation //! start title transition animation
void startAnimation( void ) void startAnimation( void )
{ {