diff options
Diffstat (limited to 'src/gvcore/busylevelmanager.cpp')
-rw-r--r-- | src/gvcore/busylevelmanager.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gvcore/busylevelmanager.cpp b/src/gvcore/busylevelmanager.cpp index a08e146..326fdf1 100644 --- a/src/gvcore/busylevelmanager.cpp +++ b/src/gvcore/busylevelmanager.cpp @@ -19,8 +19,8 @@ Copyright 2000-2004 Aurélien Gâteau */ -// Qt -#include <qtimer.h> +// TQt +#include <tqtimer.h> // KDE #include <kdebug.h> @@ -41,8 +41,8 @@ namespace Gwenview { BusyLevelManager::BusyLevelManager() : mCurrentBusyLevel( BUSY_NONE ) { - connect( &mDelayedBusyLevelTimer, SIGNAL( timeout()), - this, SLOT( delayedBusyLevelChanged())); + connect( &mDelayedBusyLevelTimer, TQT_SIGNAL( timeout()), + this, TQT_SLOT( delayedBusyLevelChanged())); } BusyLevelManager* BusyLevelManager::instance() { @@ -64,22 +64,22 @@ BusyLevelManager* BusyLevelManager::instance() { // so if one object is responsible for more operations, // it needs to use helper objects for setBusyLevel(). -void BusyLevelManager::setBusyLevel( QObject* obj, BusyLevel level ) { +void BusyLevelManager::setBusyLevel( TQObject* obj, BusyLevel level ) { LOG("BUSY:" << level << ":" << obj << ":" << obj->className() ); if( level > BUSY_NONE ) { - if( mBusyLevels.contains( obj ) && mBusyLevels[ obj ] == level ) return; - if( !mBusyLevels.contains( obj )) { - connect( obj, SIGNAL( destroyed( QObject* )), this, SLOT( objectDestroyed( QObject* ))); + if( mBusyLevels.tqcontains( obj ) && mBusyLevels[ obj ] == level ) return; + if( !mBusyLevels.tqcontains( obj )) { + connect( obj, TQT_SIGNAL( destroyed( TQObject* )), this, TQT_SLOT( objectDestroyed( TQObject* ))); } mBusyLevels[ obj ] = level; } else { mBusyLevels.remove( obj ); - disconnect( obj, SIGNAL( destroyed( QObject* )), this, SLOT( objectDestroyed( QObject* ))); + disconnect( obj, TQT_SIGNAL( destroyed( TQObject* )), this, TQT_SLOT( objectDestroyed( TQObject* ))); } mDelayedBusyLevelTimer.start( 0, true ); } -void BusyLevelManager::objectDestroyed( QObject* obj ) { +void BusyLevelManager::objectDestroyed( TQObject* obj ) { LOG("DESTROYED:" << obj ); mBusyLevels.remove( obj ); mDelayedBusyLevelTimer.start( 0, true ); @@ -87,10 +87,10 @@ void BusyLevelManager::objectDestroyed( QObject* obj ) { void BusyLevelManager::delayedBusyLevelChanged() { BusyLevel newLevel = BUSY_NONE; - for( QMap< QObject*, BusyLevel >::ConstIterator it = mBusyLevels.begin(); + for( TQMap< TQObject*, BusyLevel >::ConstIterator it = mBusyLevels.begin(); it != mBusyLevels.end(); ++it ) { - newLevel = QMAX( newLevel, *it ); + newLevel = TQMAX( newLevel, *it ); } if( newLevel != mCurrentBusyLevel ) { |