diff options
Diffstat (limited to 'kitchensync/src/groupitem.cpp')
-rw-r--r-- | kitchensync/src/groupitem.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/kitchensync/src/groupitem.cpp b/kitchensync/src/groupitem.cpp index 0a27fb9e9..d708f6815 100644 --- a/kitchensync/src/groupitem.cpp +++ b/kitchensync/src/groupitem.cpp @@ -40,8 +40,8 @@ #include "groupitem.h" -GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process ) - : KWidgetListItem( parent ), mSyncProcess( process ), +GroupItem::GroupItem( KWidgetList *tqparent, SyncProcess *process ) + : KWidgetListItem( tqparent ), mSyncProcess( process ), mCallbackHandler( new QSync::CallbackHandler ), mProcessedItems( 0 ), mMaxProcessedItems( 0 ), mSynchronizing( false ) @@ -81,14 +81,14 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process ) mGroupName->setPaletteForegroundColor( tqcolorGroup().light() ); mGroupName->setPaletteBackgroundColor( tqcolorGroup().mid() ); - mStatus = new TQLabel( hbox ); - mStatus->tqsetAlignment( Qt::AlignRight ); - mStatus->tqsetAlignment( AlignRight | AlignVCenter ); - mStatus->setIndent( KDialog::spacingHint() ); - mStatus->setFont( boldFont ); - mStatus->setPaletteForegroundColor( tqcolorGroup().light() ); - mStatus->setPaletteBackgroundColor( tqcolorGroup().mid() ); - mStatus->setText( i18n( "Ready" ) ); + mtqStatus = new TQLabel( hbox ); + mtqStatus->tqsetAlignment( TQt::AlignRight ); + mtqStatus->tqsetAlignment( AlignRight | AlignVCenter ); + mtqStatus->setIndent( KDialog::spacingHint() ); + mtqStatus->setFont( boldFont ); + mtqStatus->setPaletteForegroundColor( tqcolorGroup().light() ); + mtqStatus->setPaletteBackgroundColor( tqcolorGroup().mid() ); + mtqStatus->setText( i18n( "Ready" ) ); hbox->setPaletteBackgroundColor( tqcolorGroup().mid() ); hbox->setMaximumHeight( hbox->tqminimumSizeHint().height() ); @@ -189,14 +189,14 @@ void GroupItem::change( const QSync::SyncChangeUpdate &update ) switch ( update.type() ) { case QSync::SyncChangeUpdate::Received: mProcessedItems++; - mStatus->setText( i18n( "%1 entries read" ).arg( mProcessedItems ) ); + mtqStatus->setText( i18n( "%1 entries read" ).arg( mProcessedItems ) ); break; case QSync::SyncChangeUpdate::ReceivedInfo: - mStatus->setText( i18n( "Receive information" ) ); + mtqStatus->setText( i18n( "Receive information" ) ); break; case QSync::SyncChangeUpdate::Sent: mProcessedItems--; - mStatus->setText( i18n( "%1 entries written" ).arg( mMaxProcessedItems - mProcessedItems ) ); + mtqStatus->setText( i18n( "%1 entries written" ).arg( mMaxProcessedItems - mProcessedItems ) ); mProgressBar->show(); @@ -212,15 +212,15 @@ void GroupItem::change( const QSync::SyncChangeUpdate &update ) } break; case QSync::SyncChangeUpdate::WriteError: - mStatus->setText( i18n( "Error" ) ); + mtqStatus->setText( i18n( "Error" ) ); KPassivePopup::message( update.result().message(), this ); break; case QSync::SyncChangeUpdate::ReceiveError: - mStatus->setText( i18n( "Error" ) ); + mtqStatus->setText( i18n( "Error" ) ); KPassivePopup::message( update.result().message(), this ); break; default: - mStatus->setText( TQString() ); + mtqStatus->setText( TQString() ); break; } } @@ -233,24 +233,24 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update ) { switch ( update.type() ) { case QSync::SyncEngineUpdate::EndPhaseConnected: - mStatus->setText( i18n( "Connected" ) ); + mtqStatus->setText( i18n( "Connected" ) ); mProgressBar->setProgress( 0 ); mSynchronizing = true; mSyncAction->setText( "Abort Synchronization" ); break; case QSync::SyncEngineUpdate::EndPhaseRead: - mStatus->setText( i18n( "Data read" ) ); + mtqStatus->setText( i18n( "Data read" ) ); break; case QSync::SyncEngineUpdate::EndPhaseWrite: - mStatus->setText( i18n( "Data written" ) ); + mtqStatus->setText( i18n( "Data written" ) ); mProgressBar->setProgress( 100 ); mProcessedItems = mMaxProcessedItems = 0; break; case QSync::SyncEngineUpdate::EndPhaseDisconnected: - mStatus->setText( i18n( "Disconnected" ) ); + mtqStatus->setText( i18n( "Disconnected" ) ); break; case QSync::SyncEngineUpdate::Error: - mStatus->setText( i18n( "Synchronization failed" ) ); + mtqStatus->setText( i18n( "Synchronization failed" ) ); KPassivePopup::message( update.result().message(), this ); this->update(); @@ -258,7 +258,7 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update ) mSyncAction->setText( i18n( "Synchronize Now" ) ); break; case QSync::SyncEngineUpdate::SyncSuccessfull: - mStatus->setText( i18n( "Successfully synchronized" ) ); + mtqStatus->setText( i18n( "Successfully synchronized" ) ); mSyncProcess->group().setLastSynchronization( TQDateTime::tqcurrentDateTime() ); mSyncProcess->group().save(); this->update(); @@ -267,14 +267,14 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update ) mSyncAction->setText( i18n( "Synchronize Now" ) ); break; case QSync::SyncEngineUpdate::PrevUnclean: - mStatus->setText( i18n( "Previous synchronization failed" ) ); + mtqStatus->setText( i18n( "Previous synchronization failed" ) ); break; case QSync::SyncEngineUpdate::EndConflicts: - mStatus->setText( i18n( "Conflicts solved" ) ); + mtqStatus->setText( i18n( "Conflicts solved" ) ); mMaxProcessedItems = mProcessedItems; break; default: - mStatus->setText( TQString() ); + mtqStatus->setText( TQString() ); break; } } @@ -345,9 +345,9 @@ void GroupItem::engineChanged( QSync::Engine *engine ) this->update(); } -MemberItem::MemberItem( TQWidget *parent, SyncProcess *process, +MemberItem::MemberItem( TQWidget *tqparent, SyncProcess *process, const QSync::Member &member ) - : TQWidget( parent ), mSyncProcess( process ), mMember( member ) + : TQWidget( tqparent ), mSyncProcess( process ), mMember( member ) { TQFont boldFont; boldFont.setBold( true ); @@ -367,7 +367,7 @@ MemberItem::MemberItem( TQWidget *parent, SyncProcess *process, mIcon = new TQLabel( box ); mIcon->setPixmap( icon ); - mIcon->tqsetAlignment( Qt::AlignTop ); + mIcon->tqsetAlignment( TQt::AlignTop ); mIcon->setFixedWidth( mIcon->tqsizeHint().width() ); TQVBox *nameBox = new TQVBox( box ); @@ -375,7 +375,7 @@ MemberItem::MemberItem( TQWidget *parent, SyncProcess *process, mMemberName->setFont( boldFont ); mDescription = new TQLabel( nameBox ); - mStatus = new TQLabel( box ); + mtqStatus = new TQLabel( box ); mMemberName->setText( member.name() ); mDescription->setText( plugin.longName() ); @@ -383,7 +383,7 @@ MemberItem::MemberItem( TQWidget *parent, SyncProcess *process, void MemberItem::seStatusMessage( const TQString &msg ) { - mStatus->setText( msg ); + mtqStatus->setText( msg ); } #include "groupitem.moc" |