summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/groupitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kitchensync/src/groupitem.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kitchensync/src/groupitem.cpp')
-rw-r--r--kitchensync/src/groupitem.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/kitchensync/src/groupitem.cpp b/kitchensync/src/groupitem.cpp
index 784991c6f..0a27fb9e9 100644
--- a/kitchensync/src/groupitem.cpp
+++ b/kitchensync/src/groupitem.cpp
@@ -50,7 +50,7 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process )
boldFont.setBold( true );
boldFont.setPointSize( boldFont.pointSize() + 2 );
- TQGridLayout *layout = new TQGridLayout( this, 4, 4, KDialog::marginHint(), KDialog::spacingHint() );
+ TQGridLayout *tqlayout = new TQGridLayout( this, 4, 4, KDialog::marginHint(), KDialog::spacingHint() );
mBox = new TQVBox( this );
mBox->setMargin( 5 );
@@ -71,36 +71,36 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process )
mIcon = new TQLabel( hbox );
mIcon->setPixmap( icon );
- mIcon->setFixedSize( mIcon->sizeHint() );
- mIcon->setPaletteBackgroundColor( colorGroup().mid() );
+ mIcon->setFixedSize( mIcon->tqsizeHint() );
+ mIcon->setPaletteBackgroundColor( tqcolorGroup().mid() );
mGroupName = new TQLabel( hbox );
- mGroupName->setAlignment( AlignLeft | AlignVCenter );
+ mGroupName->tqsetAlignment( AlignLeft | AlignVCenter );
mGroupName->setIndent( KDialog::spacingHint() );
mGroupName->setFont( boldFont );
- mGroupName->setPaletteForegroundColor( colorGroup().light() );
- mGroupName->setPaletteBackgroundColor( colorGroup().mid() );
+ mGroupName->setPaletteForegroundColor( tqcolorGroup().light() );
+ mGroupName->setPaletteBackgroundColor( tqcolorGroup().mid() );
mStatus = new TQLabel( hbox );
- mStatus->setAlignment( Qt::AlignRight );
- mStatus->setAlignment( AlignRight | AlignVCenter );
+ mStatus->tqsetAlignment( Qt::AlignRight );
+ mStatus->tqsetAlignment( AlignRight | AlignVCenter );
mStatus->setIndent( KDialog::spacingHint() );
mStatus->setFont( boldFont );
- mStatus->setPaletteForegroundColor( colorGroup().light() );
- mStatus->setPaletteBackgroundColor( colorGroup().mid() );
+ mStatus->setPaletteForegroundColor( tqcolorGroup().light() );
+ mStatus->setPaletteBackgroundColor( tqcolorGroup().mid() );
mStatus->setText( i18n( "Ready" ) );
- hbox->setPaletteBackgroundColor( colorGroup().mid() );
- hbox->setMaximumHeight( hbox->minimumSizeHint().height() );
+ hbox->setPaletteBackgroundColor( tqcolorGroup().mid() );
+ hbox->setMaximumHeight( hbox->tqminimumSizeHint().height() );
- layout->addMultiCellWidget( hbox, 0, 0, 0, 3 );
- layout->addMultiCellWidget( mBox, 1, 1, 0, 3 );
- layout->addWidget( mTime, 2, 0 );
- layout->addWidget( mSyncAction, 2, 1 );
- layout->addWidget( mConfigureAction, 2, 2 );
- layout->addWidget( mProgressBar, 2, 3 );
- layout->setColStretch( 0, 1 );
- layout->setRowStretch( 3, 1 );
+ tqlayout->addMultiCellWidget( hbox, 0, 0, 0, 3 );
+ tqlayout->addMultiCellWidget( mBox, 1, 1, 0, 3 );
+ tqlayout->addWidget( mTime, 2, 0 );
+ tqlayout->addWidget( mSyncAction, 2, 1 );
+ tqlayout->addWidget( mConfigureAction, 2, 2 );
+ tqlayout->addWidget( mProgressBar, 2, 3 );
+ tqlayout->setColStretch( 0, 1 );
+ tqlayout->setRowStretch( 3, 1 );
setPaletteBackgroundColor( kapp->palette().active().base() );
@@ -157,7 +157,7 @@ void GroupItem::update()
for ( ; memberIt != memberEndIt; ++memberIt ) {
MemberItem *item = new MemberItem( mBox, mSyncProcess, *memberIt );
item->show();
- item->setStatusMessage( i18n( "Ready" ) );
+ item->seStatusMessage( i18n( "Ready" ) );
mMemberItems.append( item );
}
}
@@ -259,7 +259,7 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update )
break;
case QSync::SyncEngineUpdate::SyncSuccessfull:
mStatus->setText( i18n( "Successfully synchronized" ) );
- mSyncProcess->group().setLastSynchronization( TQDateTime::currentDateTime() );
+ mSyncProcess->group().setLastSynchronization( TQDateTime::tqcurrentDateTime() );
mSyncProcess->group().save();
this->update();
@@ -286,31 +286,31 @@ void GroupItem::member( const QSync::SyncMemberUpdate &update )
if ( (*it)->member() == update.member() ) {
switch ( update.type() ) {
case QSync::SyncMemberUpdate::Connected:
- (*it)->setStatusMessage( i18n( "Connected" ) );
+ (*it)->seStatusMessage( i18n( "Connected" ) );
break;
case QSync::SyncMemberUpdate::SentChanges:
- (*it)->setStatusMessage( i18n( "Changes read" ) );
+ (*it)->seStatusMessage( i18n( "Changes read" ) );
break;
case QSync::SyncMemberUpdate::CommittedAll:
- (*it)->setStatusMessage( i18n( "Changes written" ) );
+ (*it)->seStatusMessage( i18n( "Changes written" ) );
break;
case QSync::SyncMemberUpdate::Disconnected:
- (*it)->setStatusMessage( i18n( "Disconnected" ) );
+ (*it)->seStatusMessage( i18n( "Disconnected" ) );
break;
case QSync::SyncMemberUpdate::ConnectError:
- (*it)->setStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
+ (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
break;
case QSync::SyncMemberUpdate::GetChangesError:
- (*it)->setStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
+ (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
break;
case QSync::SyncMemberUpdate::CommittedAllError:
- (*it)->setStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
+ (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
break;
case QSync::SyncMemberUpdate::SyncDoneError:
- (*it)->setStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
+ (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
break;
case QSync::SyncMemberUpdate::DisconnectedError:
- (*it)->setStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
+ (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) );
break;
default:
break;
@@ -358,17 +358,17 @@ MemberItem::MemberItem( TQWidget *parent, SyncProcess *process,
QSync::Plugin plugin = member.plugin();
- TQVBoxLayout *layout = new TQVBoxLayout( this );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
TQHBox* box = new TQHBox( this );
box->setMargin( 5 );
box->setSpacing( 6 );
- layout->addWidget( box );
+ tqlayout->addWidget( box );
mIcon = new TQLabel( box );
mIcon->setPixmap( icon );
- mIcon->setAlignment( Qt::AlignTop );
- mIcon->setFixedWidth( mIcon->sizeHint().width() );
+ mIcon->tqsetAlignment( Qt::AlignTop );
+ mIcon->setFixedWidth( mIcon->tqsizeHint().width() );
TQVBox *nameBox = new TQVBox( box );
mMemberName = new TQLabel( nameBox );
@@ -381,7 +381,7 @@ MemberItem::MemberItem( TQWidget *parent, SyncProcess *process,
mDescription->setText( plugin.longName() );
}
-void MemberItem::setStatusMessage( const TQString &msg )
+void MemberItem::seStatusMessage( const TQString &msg )
{
mStatus->setText( msg );
}