summaryrefslogtreecommitdiffstats
path: root/libkdepim/progressmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/progressmanager.cpp')
-rw-r--r--libkdepim/progressmanager.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/libkdepim/progressmanager.cpp b/libkdepim/progressmanager.cpp
index 9dd80c9dc..a00970c5e 100644
--- a/libkdepim/progressmanager.cpp
+++ b/libkdepim/progressmanager.cpp
@@ -35,10 +35,10 @@ KPIM::ProgressManager * KPIM::ProgressManager::mInstance = 0;
unsigned int KPIM::ProgressManager::uID = 42;
ProgressItem::ProgressItem(
- ProgressItem* tqparent, const TQString& id,
+ ProgressItem* parent, const TQString& id,
const TQString& label, const TQString& status, bool canBeCanceled,
bool usesCrypto )
- :mId( id ), mLabel( label ), mtqStatus( status ), mParent( tqparent ),
+ :mId( id ), mLabel( label ), mtqStatus( status ), mParent( parent ),
mCanBeCanceled( canBeCanceled ), mProgress( 0 ), mTotal( 0 ),
mCompleted( 0 ), mWaitingForKids( false ), mCanceled( false ),
mUsesCrypto( usesCrypto ), mUsesBusyIndicator( false )
@@ -56,8 +56,8 @@ void ProgressItem::setComplete()
if ( !mCanceled )
setProgress( 100 );
emit progressItemCompleted( this );
- if ( tqparent() )
- tqparent()->removeChild( this );
+ if ( parent() )
+ parent()->removeChild( this );
deleteLater();
} else {
mWaitingForKids = true;
@@ -147,16 +147,16 @@ ProgressManager* ProgressManager::instance()
}
ProgressItem* ProgressManager::createProgressItemImpl(
- ProgressItem* tqparent, const TQString& id,
+ ProgressItem* parent, const TQString& id,
const TQString &label, const TQString &status,
bool cancellable, bool usesCrypto )
{
ProgressItem *t = 0;
if ( !mTransactions[ id ] ) {
- t = new ProgressItem ( tqparent, id, label, status, cancellable, usesCrypto );
+ t = new ProgressItem ( parent, id, label, status, cancellable, usesCrypto );
mTransactions.insert( id, t );
- if ( tqparent ) {
- ProgressItem *p = mTransactions[ tqparent->id() ];
+ if ( parent ) {
+ ProgressItem *p = mTransactions[ parent->id() ];
if ( p ) {
p->addChild( t );
}
@@ -188,11 +188,11 @@ ProgressItem* ProgressManager::createProgressItemImpl(
}
ProgressItem* ProgressManager::createProgressItemImpl(
- const TQString& tqparent, const TQString &id,
+ const TQString& parent, const TQString &id,
const TQString &label, const TQString& status,
bool canBeCanceled, bool usesCrypto )
{
- ProgressItem * p = mTransactions[tqparent];
+ ProgressItem * p = mTransactions[parent];
return createProgressItemImpl( p, id, label, status, canBeCanceled, usesCrypto );
}
@@ -225,7 +225,7 @@ ProgressItem* ProgressManager::singleItem() const
if ( (*it)->usesBusyIndicator() )
return 0;
- if ( !(*it)->tqparent() ) { // if it's a top level one, only those count
+ if ( !(*it)->parent() ) { // if it's a top level one, only those count
if ( item )
return 0; // we found more than one
else