diff options
Diffstat (limited to 'certmanager/lib/ui/progressbar.cpp')
-rw-r--r-- | certmanager/lib/ui/progressbar.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/certmanager/lib/ui/progressbar.cpp b/certmanager/lib/ui/progressbar.cpp index 96f51fa8a..1b14868d6 100644 --- a/certmanager/lib/ui/progressbar.cpp +++ b/certmanager/lib/ui/progressbar.cpp @@ -33,26 +33,26 @@ #include "config.h" #include "progressbar.h" -#include <qtimer.h> +#include <tqtimer.h> #include <kdebug.h> static const int busyTimerTickInterval = 100; static const int busyTimerTickIncrement = 5; -Kleo::ProgressBar::ProgressBar( QWidget * parent, const char * name, WFlags f ) - : QProgressBar( 0, parent, name, f ), +Kleo::ProgressBar::ProgressBar( TQWidget * parent, const char * name, WFlags f ) + : TQProgressBar( 0, parent, name, f ), mRealProgress( -1 ) { - mBusyTimer = new QTimer( this ); - connect( mBusyTimer, SIGNAL(timeout()), SLOT(slotBusyTimerTick()) ); + mBusyTimer = new TQTimer( this ); + connect( mBusyTimer, TQT_SIGNAL(timeout()), TQT_SLOT(slotBusyTimerTick()) ); fixup( true ); } -void Kleo::ProgressBar::slotProgress( const QString &, int cur, int tot ) { +void Kleo::ProgressBar::slotProgress( const TQString &, int cur, int tot ) { setProgress( cur, tot ); } -void Kleo::ProgressBar::slotProgress( const QString &, int, int cur, int tot ) { +void Kleo::ProgressBar::slotProgress( const TQString &, int, int cur, int tot ) { setProgress( cur, tot ); } @@ -60,7 +60,7 @@ void Kleo::ProgressBar::setTotalSteps( int total ) { kdDebug() << "Kleo::ProgressBar::setTotalSteps( " << total << " )" << endl; if ( total == totalSteps() ) return; - QProgressBar::setTotalSteps( 0 ); + TQProgressBar::setTotalSteps( 0 ); fixup( false ); } @@ -78,12 +78,12 @@ void Kleo::ProgressBar::reset() { void Kleo::ProgressBar::slotBusyTimerTick() { fixup( false ); if ( mBusyTimer->isActive() ) - QProgressBar::setProgress( QProgressBar::progress() + busyTimerTickIncrement ); + TQProgressBar::setProgress( TQProgressBar::progress() + busyTimerTickIncrement ); } void Kleo::ProgressBar::fixup( bool newValue ) { - const int cur = QProgressBar::progress(); - const int tot = QProgressBar::totalSteps(); + const int cur = TQProgressBar::progress(); + const int tot = TQProgressBar::totalSteps(); kdDebug() << "Kleo::ProgressBar::startStopBusyTimer() cur = " << cur << "; tot = " << tot << "; real = " << mRealProgress << endl; @@ -91,20 +91,20 @@ void Kleo::ProgressBar::fixup( bool newValue ) { kdDebug() << "(new value) switch to reset" << endl; mBusyTimer->stop(); if ( newValue ) - QProgressBar::reset(); + TQProgressBar::reset(); mRealProgress = -1; } else if ( tot == 0 ) { kdDebug() << "(new value) switch or stay in busy" << endl; if ( !mBusyTimer->isActive() ) { mBusyTimer->start( busyTimerTickInterval ); if ( newValue ) - QProgressBar::setProgress( mRealProgress ); + TQProgressBar::setProgress( mRealProgress ); } } else { kdDebug() << "(new value) normal progress" << endl; mBusyTimer->stop(); - if ( QProgressBar::progress() != mRealProgress ) - QProgressBar::setProgress( mRealProgress ); + if ( TQProgressBar::progress() != mRealProgress ) + TQProgressBar::setProgress( mRealProgress ); } } |