From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdepim/progressmanager.cpp | 58 +++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'libkdepim/progressmanager.cpp') diff --git a/libkdepim/progressmanager.cpp b/libkdepim/progressmanager.cpp index e9d1b0677..0c73e0c55 100644 --- a/libkdepim/progressmanager.cpp +++ b/libkdepim/progressmanager.cpp @@ -21,7 +21,7 @@ Boston, MA 02110-1301, USA. */ -#include +#include #include #include @@ -35,8 +35,8 @@ KPIM::ProgressManager * KPIM::ProgressManager::mInstance = 0; unsigned int KPIM::ProgressManager::uID = 42; ProgressItem::ProgressItem( - ProgressItem* parent, const QString& id, - const QString& label, const QString& status, bool canBeCanceled, + ProgressItem* parent, const TQString& id, + const TQString& label, const TQString& status, bool canBeCanceled, bool usesCrypto ) :mId( id ), mLabel( label ), mStatus( status ), mParent( parent ), mCanBeCanceled( canBeCanceled ), mProgress( 0 ), mTotal( 0 ), @@ -85,9 +85,9 @@ void ProgressItem::cancel() kdDebug(5300) << "ProgressItem::cancel() - " << label() << endl; mCanceled = true; // Cancel all children. - QValueList kids = mChildren.keys(); - QValueList::Iterator it( kids.begin() ); - QValueList::Iterator end( kids.end() ); + TQValueList kids = mChildren.keys(); + TQValueList::Iterator it( kids.begin() ); + TQValueList::Iterator end( kids.end() ); for ( ; it != end; it++ ) { ProgressItem *kid = *it; if ( kid->canBeCanceled() ) @@ -105,13 +105,13 @@ void ProgressItem::setProgress( unsigned int v ) emit progressItemProgress( this, mProgress ); } -void ProgressItem::setLabel( const QString& v ) +void ProgressItem::setLabel( const TQString& v ) { mLabel = v; emit progressItemLabel( this, mLabel ); } -void ProgressItem::setStatus( const QString& v ) +void ProgressItem::setStatus( const TQString& v ) { mStatus = v; emit progressItemStatus( this, mStatus ); @@ -125,7 +125,7 @@ void ProgressItem::setUsesCrypto( bool v ) // ====================================== -ProgressManager::ProgressManager() :QObject() { +ProgressManager::ProgressManager() :TQObject() { mInstance = this; } @@ -141,8 +141,8 @@ ProgressManager* ProgressManager::instance() } ProgressItem* ProgressManager::createProgressItemImpl( - ProgressItem* parent, const QString& id, - const QString &label, const QString &status, + ProgressItem* parent, const TQString& id, + const TQString &label, const TQString &status, bool cancellable, bool usesCrypto ) { ProgressItem *t = 0; @@ -156,20 +156,20 @@ ProgressItem* ProgressManager::createProgressItemImpl( } } // connect all signals - connect ( t, SIGNAL( progressItemCompleted(KPIM::ProgressItem*) ), - this, SLOT( slotTransactionCompleted(KPIM::ProgressItem*) ) ); - connect ( t, SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ), - this, SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ) ); - connect ( t, SIGNAL( progressItemAdded(KPIM::ProgressItem*) ), - this, SIGNAL( progressItemAdded(KPIM::ProgressItem*) ) ); - connect ( t, SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ), - this, SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ) ); - connect ( t, SIGNAL( progressItemStatus(KPIM::ProgressItem*, const QString&) ), - this, SIGNAL( progressItemStatus(KPIM::ProgressItem*, const QString&) ) ); - connect ( t, SIGNAL( progressItemLabel(KPIM::ProgressItem*, const QString&) ), - this, SIGNAL( progressItemLabel(KPIM::ProgressItem*, const QString&) ) ); - connect ( t, SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ), - this, SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ) ); + connect ( t, TQT_SIGNAL( progressItemCompleted(KPIM::ProgressItem*) ), + this, TQT_SLOT( slotTransactionCompleted(KPIM::ProgressItem*) ) ); + connect ( t, TQT_SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ), + this, TQT_SIGNAL( progressItemProgress(KPIM::ProgressItem*, unsigned int) ) ); + connect ( t, TQT_SIGNAL( progressItemAdded(KPIM::ProgressItem*) ), + this, TQT_SIGNAL( progressItemAdded(KPIM::ProgressItem*) ) ); + connect ( t, TQT_SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ), + this, TQT_SIGNAL( progressItemCanceled(KPIM::ProgressItem*) ) ); + connect ( t, TQT_SIGNAL( progressItemStatus(KPIM::ProgressItem*, const TQString&) ), + this, TQT_SIGNAL( progressItemStatus(KPIM::ProgressItem*, const TQString&) ) ); + connect ( t, TQT_SIGNAL( progressItemLabel(KPIM::ProgressItem*, const TQString&) ), + this, TQT_SIGNAL( progressItemLabel(KPIM::ProgressItem*, const TQString&) ) ); + connect ( t, TQT_SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ), + this, TQT_SIGNAL( progressItemUsesCrypto(KPIM::ProgressItem*, bool) ) ); emit progressItemAdded( t ); } else { @@ -180,8 +180,8 @@ ProgressItem* ProgressManager::createProgressItemImpl( } ProgressItem* ProgressManager::createProgressItemImpl( - const QString& parent, const QString &id, - const QString &label, const QString& status, + const TQString& parent, const TQString &id, + const TQString &label, const TQString& status, bool canBeCanceled, bool usesCrypto ) { ProgressItem * p = mTransactions[parent]; @@ -210,7 +210,7 @@ void ProgressManager::slotStandardCancelHandler( ProgressItem *item ) ProgressItem* ProgressManager::singleItem() const { ProgressItem *item = 0; - QDictIterator< ProgressItem > it( mTransactions ); + TQDictIterator< ProgressItem > it( mTransactions ); for ( ; it.current(); ++it ) { if ( !(*it)->parent() ) { // if it's a top level one, only those count if ( item ) @@ -224,7 +224,7 @@ ProgressItem* ProgressManager::singleItem() const void ProgressManager::slotAbortAll() { - QDictIterator< ProgressItem > it( mTransactions ); + TQDictIterator< ProgressItem > it( mTransactions ); for ( ; it.current(); ++it ) { it.current()->cancel(); } -- cgit v1.2.1