diff --git a/kstyle/animations/breezetransitiondata.h b/kstyle/animations/breezetransitiondata.h --- a/kstyle/animations/breezetransitiondata.h +++ b/kstyle/animations/breezetransitiondata.h @@ -30,7 +30,7 @@ #include "breezetransitionwidget.h" #include -#include +#include #include namespace Breeze @@ -76,13 +76,13 @@ //* start clock void startClock() { - if( _clock.isNull() ) _clock.start(); + if( !_clock.isValid() ) _clock.start(); else _clock.restart(); } //* check if rendering is two slow bool slow() const - { return !( _clock.isNull() || _clock.elapsed() <= maxRenderTime() ); } + { return !( !_clock.isValid() || _clock.elapsed() <= maxRenderTime() ); } protected Q_SLOTS: @@ -118,7 +118,7 @@ bool _recursiveCheck = false; //* timer used to detect slow rendering - QTime _clock; + QElapsedTimer _clock; //* max render time /*! used to detect slow rendering */