summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/groupitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kitchensync/src/groupitem.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kitchensync/src/groupitem.cpp')
-rw-r--r--kitchensync/src/groupitem.cpp100
1 files changed, 50 insertions, 50 deletions
diff --git a/kitchensync/src/groupitem.cpp b/kitchensync/src/groupitem.cpp
index bd5a8821d..784991c6f 100644
--- a/kitchensync/src/groupitem.cpp
+++ b/kitchensync/src/groupitem.cpp
@@ -27,11 +27,11 @@
#include <kpassivepopup.h>
#include <kurllabel.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpixmap.h>
-#include <qprogressbar.h>
-#include <qvbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqprogressbar.h>
+#include <tqvbox.h>
#include "memberinfo.h"
#include "multiconflictdialog.h"
@@ -46,42 +46,42 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process )
mProcessedItems( 0 ), mMaxProcessedItems( 0 ),
mSynchronizing( false )
{
- QFont boldFont;
+ TQFont boldFont;
boldFont.setBold( true );
boldFont.setPointSize( boldFont.pointSize() + 2 );
- QGridLayout *layout = new QGridLayout( this, 4, 4, KDialog::marginHint(), KDialog::spacingHint() );
+ TQGridLayout *layout = new TQGridLayout( this, 4, 4, KDialog::marginHint(), KDialog::spacingHint() );
- mBox = new QVBox( this );
+ mBox = new TQVBox( this );
mBox->setMargin( 5 );
- mProgressBar = new QProgressBar( this );
+ mProgressBar = new TQProgressBar( this );
mProgressBar->setTotalSteps( 100 );
- mTime = new QLabel( this );
+ mTime = new TQLabel( this );
mSyncAction = new KURLLabel( "exec:/sync", i18n( "Synchronize Now" ), this );
mConfigureAction = new KURLLabel( "exec:/config", i18n( "Configure" ), this );
// header
- QHBox* hbox = new QHBox( this );
+ TQHBox* hbox = new TQHBox( this );
hbox->setMargin( 2 );
- static QPixmap icon;
+ static TQPixmap icon;
if ( icon.isNull() )
icon = KGlobal::iconLoader()->loadIcon( "kontact_summary", KIcon::Desktop );
- mIcon = new QLabel( hbox );
+ mIcon = new TQLabel( hbox );
mIcon->setPixmap( icon );
mIcon->setFixedSize( mIcon->sizeHint() );
mIcon->setPaletteBackgroundColor( colorGroup().mid() );
- mGroupName = new QLabel( hbox );
+ mGroupName = new TQLabel( hbox );
mGroupName->setAlignment( AlignLeft | AlignVCenter );
mGroupName->setIndent( KDialog::spacingHint() );
mGroupName->setFont( boldFont );
mGroupName->setPaletteForegroundColor( colorGroup().light() );
mGroupName->setPaletteBackgroundColor( colorGroup().mid() );
- mStatus = new QLabel( hbox );
+ mStatus = new TQLabel( hbox );
mStatus->setAlignment( Qt::AlignRight );
mStatus->setAlignment( AlignRight | AlignVCenter );
mStatus->setIndent( KDialog::spacingHint() );
@@ -104,22 +104,22 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process )
setPaletteBackgroundColor( kapp->palette().active().base() );
- connect( mCallbackHandler, SIGNAL( conflict( QSync::SyncMapping ) ),
- this, SLOT( conflict( QSync::SyncMapping ) ) );
- connect( mCallbackHandler, SIGNAL( change( const QSync::SyncChangeUpdate& ) ),
- this, SLOT( change( const QSync::SyncChangeUpdate& ) ) );
- connect( mCallbackHandler, SIGNAL( mapping( const QSync::SyncMappingUpdate& ) ),
- this, SLOT( mapping( const QSync::SyncMappingUpdate& ) ) );
- connect( mCallbackHandler, SIGNAL( engine( const QSync::SyncEngineUpdate& ) ),
- this, SLOT( engine( const QSync::SyncEngineUpdate& ) ) );
- connect( mCallbackHandler, SIGNAL( member( const QSync::SyncMemberUpdate& ) ),
- this, SLOT( member( const QSync::SyncMemberUpdate& ) ) );
- connect( mSyncAction, SIGNAL( leftClickedURL() ),
- this, SLOT( synchronize() ) );
- connect( mConfigureAction, SIGNAL( leftClickedURL() ),
- this, SLOT( configure() ) );
- connect( mSyncProcess, SIGNAL( engineChanged( QSync::Engine* ) ),
- this, SLOT( engineChanged( QSync::Engine* ) ) );
+ connect( mCallbackHandler, TQT_SIGNAL( conflict( QSync::SyncMapping ) ),
+ this, TQT_SLOT( conflict( QSync::SyncMapping ) ) );
+ connect( mCallbackHandler, TQT_SIGNAL( change( const QSync::SyncChangeUpdate& ) ),
+ this, TQT_SLOT( change( const QSync::SyncChangeUpdate& ) ) );
+ connect( mCallbackHandler, TQT_SIGNAL( mapping( const QSync::SyncMappingUpdate& ) ),
+ this, TQT_SLOT( mapping( const QSync::SyncMappingUpdate& ) ) );
+ connect( mCallbackHandler, TQT_SIGNAL( engine( const QSync::SyncEngineUpdate& ) ),
+ this, TQT_SLOT( engine( const QSync::SyncEngineUpdate& ) ) );
+ connect( mCallbackHandler, TQT_SIGNAL( member( const QSync::SyncMemberUpdate& ) ),
+ this, TQT_SLOT( member( const QSync::SyncMemberUpdate& ) ) );
+ connect( mSyncAction, TQT_SIGNAL( leftClickedURL() ),
+ this, TQT_SLOT( synchronize() ) );
+ connect( mConfigureAction, TQT_SIGNAL( leftClickedURL() ),
+ this, TQT_SLOT( configure() ) );
+ connect( mSyncProcess, TQT_SIGNAL( engineChanged( QSync::Engine* ) ),
+ this, TQT_SLOT( engineChanged( QSync::Engine* ) ) );
mCallbackHandler->setEngine( mSyncProcess->engine() );
@@ -141,7 +141,7 @@ void GroupItem::update()
mGroupName->setText( i18n( "Group: %1" ).arg( mSyncProcess->group().name() ) );
- QDateTime dateTime = mSyncProcess->group().lastSynchronization();
+ TQDateTime dateTime = mSyncProcess->group().lastSynchronization();
if ( dateTime.isValid() )
mTime->setText( i18n( "Last synchronized on: %1" ).arg( KGlobal::locale()->formatDateTime( dateTime ) ) );
else
@@ -164,9 +164,9 @@ void GroupItem::update()
void GroupItem::clear()
{
- mGroupName->setText( QString() );
+ mGroupName->setText( TQString() );
- QValueList<MemberItem*>::Iterator it;
+ TQValueList<MemberItem*>::Iterator it;
for ( it = mMemberItems.begin(); it != mMemberItems.end(); ++it )
delete *it;
@@ -220,7 +220,7 @@ void GroupItem::change( const QSync::SyncChangeUpdate &update )
KPassivePopup::message( update.result().message(), this );
break;
default:
- mStatus->setText( QString() );
+ mStatus->setText( TQString() );
break;
}
}
@@ -259,7 +259,7 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update )
break;
case QSync::SyncEngineUpdate::SyncSuccessfull:
mStatus->setText( i18n( "Successfully synchronized" ) );
- mSyncProcess->group().setLastSynchronization( QDateTime::currentDateTime() );
+ mSyncProcess->group().setLastSynchronization( TQDateTime::currentDateTime() );
mSyncProcess->group().save();
this->update();
@@ -274,14 +274,14 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update )
mMaxProcessedItems = mProcessedItems;
break;
default:
- mStatus->setText( QString() );
+ mStatus->setText( TQString() );
break;
}
}
void GroupItem::member( const QSync::SyncMemberUpdate &update )
{
- QValueList<MemberItem*>::Iterator it;
+ TQValueList<MemberItem*>::Iterator it;
for ( it = mMemberItems.begin(); it != mMemberItems.end(); ++it ) {
if ( (*it)->member() == update.member() ) {
switch ( update.type() ) {
@@ -345,43 +345,43 @@ void GroupItem::engineChanged( QSync::Engine *engine )
this->update();
}
-MemberItem::MemberItem( QWidget *parent, SyncProcess *process,
+MemberItem::MemberItem( TQWidget *parent, SyncProcess *process,
const QSync::Member &member )
- : QWidget( parent ), mSyncProcess( process ), mMember( member )
+ : TQWidget( parent ), mSyncProcess( process ), mMember( member )
{
- QFont boldFont;
+ TQFont boldFont;
boldFont.setBold( true );
MemberInfo mi( member );
- QPixmap icon = mi.smallIcon();
+ TQPixmap icon = mi.smallIcon();
QSync::Plugin plugin = member.plugin();
- QVBoxLayout *layout = new QVBoxLayout( this );
+ TQVBoxLayout *layout = new TQVBoxLayout( this );
- QHBox* box = new QHBox( this );
+ TQHBox* box = new TQHBox( this );
box->setMargin( 5 );
box->setSpacing( 6 );
layout->addWidget( box );
- mIcon = new QLabel( box );
+ mIcon = new TQLabel( box );
mIcon->setPixmap( icon );
mIcon->setAlignment( Qt::AlignTop );
mIcon->setFixedWidth( mIcon->sizeHint().width() );
- QVBox *nameBox = new QVBox( box );
- mMemberName = new QLabel( nameBox );
+ TQVBox *nameBox = new TQVBox( box );
+ mMemberName = new TQLabel( nameBox );
mMemberName->setFont( boldFont );
- mDescription = new QLabel( nameBox );
+ mDescription = new TQLabel( nameBox );
- mStatus = new QLabel( box );
+ mStatus = new TQLabel( box );
mMemberName->setText( member.name() );
mDescription->setText( plugin.longName() );
}
-void MemberItem::setStatusMessage( const QString &msg )
+void MemberItem::setStatusMessage( const TQString &msg )
{
mStatus->setText( msg );
}