[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.4/kdebase/runtime/kstyles/oxygen/animations
From: Hugo Pereira Da Costa <hugo.pereira () free ! fr>
Date: 2010-04-03 1:49:32
Message-ID: 20100403014932.8440FAC88C () svn ! kde ! org
[Download RAW message or body]
SVN commit 1110420 by hpereiradacosta:
Backport r1110419:
properly restart busy indicator timer when duration is changed
M +15 -0 oxygenprogressbarengine.cpp
M +1 -2 oxygenprogressbarengine.h
--- branches/KDE/4.4/kdebase/runtime/kstyles/oxygen/animations/oxygenprogressbarengine.cpp \
#1110419:1110420 @@ -87,6 +87,21 @@
}
+ //____________________________________________________________
+ void ProgressBarEngine::setBusyStepDuration( int value )
+ {
+ if( busyStepDuration_ == value ) return;
+ busyStepDuration_ = value;
+
+ // restart timer with specified time
+ if( timer_.isActive() )
+ {
+ timer_.stop();
+ timer_.start( busyStepDuration(), this );
+ }
+
+ }
+
//_______________________________________________
void ProgressBarEngine::timerEvent( QTimerEvent* event )
{
--- branches/KDE/4.4/kdebase/runtime/kstyles/oxygen/animations/oxygenprogressbarengine.h \
#1110419:1110420 @@ -94,8 +94,7 @@
{ return busyIndicatorEnabled_; }
//! busy indicator step duration
- virtual void setBusyStepDuration( int value )
- { busyStepDuration_ = value; }
+ virtual void setBusyStepDuration( int value );
virtual int busyStepDuration( void ) const
{ return busyStepDuration_; }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic