From 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:50:21 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kitchensync/src/aboutpage.cpp | 62 ++++++++-------- kitchensync/src/configgui.cpp | 4 +- kitchensync/src/configguiblank.cpp | 2 +- kitchensync/src/configguievo2.cpp | 24 +++---- kitchensync/src/configguifile.cpp | 2 +- kitchensync/src/configguigcalendar.cpp | 2 +- kitchensync/src/configguignokii.cpp | 20 +++--- kitchensync/src/configguigpe.cpp | 32 ++++----- kitchensync/src/configguiirmc.cpp | 2 +- kitchensync/src/configguijescs.cpp | 28 ++++---- kitchensync/src/configguildap.cpp | 48 ++++++------- kitchensync/src/configguimoto.cpp | 14 ++-- kitchensync/src/configguiopie.cpp | 32 ++++----- kitchensync/src/configguipalm.cpp | 2 +- kitchensync/src/configguisunbird.cpp | 32 ++++----- kitchensync/src/configguisynce.cpp | 24 +++---- kitchensync/src/configguisyncmlhttp.cpp | 2 +- kitchensync/src/configguisyncmlobex.cpp | 6 +- kitchensync/src/connectionwidgets.cpp | 46 ++++++------ kitchensync/src/genericdiffalgo.cpp | 6 +- kitchensync/src/groupconfig.cpp | 10 +-- kitchensync/src/groupconfigcommon.cpp | 20 +++--- kitchensync/src/groupconfigdialog.cpp | 2 +- kitchensync/src/groupitem.cpp | 118 +++++++++++++++---------------- kitchensync/src/groupitem.h | 4 +- kitchensync/src/groupview.cpp | 2 +- kitchensync/src/htmldiffalgodisplay.cpp | 22 +++--- kitchensync/src/mainwidget.cpp | 4 +- kitchensync/src/memberconfig.cpp | 6 +- kitchensync/src/multiconflictdialog.cpp | 20 +++--- kitchensync/src/part.cpp | 2 +- kitchensync/src/pluginpicker.cpp | 16 ++--- kitchensync/src/singleconflictdialog.cpp | 16 ++--- kitchensync/src/syncprocess.cpp | 4 +- kitchensync/src/syncprocess.h | 4 +- kitchensync/src/syncprocessmanager.cpp | 2 +- 36 files changed, 321 insertions(+), 321 deletions(-) (limited to 'kitchensync/src') diff --git a/kitchensync/src/aboutpage.cpp b/kitchensync/src/aboutpage.cpp index 97ee86c0b..e0bb2600b 100644 --- a/kitchensync/src/aboutpage.cpp +++ b/kitchensync/src/aboutpage.cpp @@ -19,7 +19,7 @@ */ #include -#include +#include #include #include @@ -51,18 +51,18 @@ static TQString readFile( const TQString &fileName ) AboutPage::AboutPage( TQWidget *parent ) : TQWidget( parent, "AboutPage" ) { - TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); + TQVBoxLayout *layout = new TQVBoxLayout( this ); TQString location = locate( "data", "kitchensync/about/main.html" ); TQString content = readFile( location ); - content = content.tqarg( locate( "data", "libtdepim/about/kde_infopage.css" ) ); + content = content.arg( locate( "data", "libtdepim/about/kde_infopage.css" ) ); if ( kapp->reverseLayout() ) - content = content.tqarg( "@import \"%1\";" ).tqarg( locate( "data", "libtdepim/about/kde_infopage_rtl.css" ) ); + content = content.arg( "@import \"%1\";" ).arg( locate( "data", "libtdepim/about/kde_infopage_rtl.css" ) ); else - content = content.tqarg( "" ); + content = content.arg( "" ); KHTMLPart *part = new KHTMLPart( this ); - tqlayout->addWidget( part->view() ); + layout->addWidget( part->view() ); part->begin( KURL( location ) ); @@ -70,8 +70,8 @@ AboutPage::AboutPage( TQWidget *parent ) TQString catchPhrase( i18n( "Get Synchronized!" ) ); TQString quickDescription( i18n( "The KDE Synchronization Tool" ) ); - part->write( content.tqarg( TQFont().pointSize() + 2 ).tqarg( appName ) - .tqarg( catchPhrase ).tqarg( quickDescription ).tqarg( htmlText() ) ); + part->write( content.arg( TQFont().pointSize() + 2 ).arg( appName ) + .arg( catchPhrase ).arg( quickDescription ).arg( htmlText() ) ); part->end(); connect( part->browserExtension(), @@ -111,29 +111,29 @@ TQString AboutPage::htmlText() const "" "%1
%1" "" ) - .tqarg( kapp->aboutData()->version() ) - .tqarg( i18n( "KitchenSync synchronizes your e-mail, addressbook, calendar, to-do list and more." ) ) - .tqarg( "help:/kitchensync" ) - .tqarg( iconSize ) - .tqarg( iconSize ) - .tqarg( handbook_icon_path ) - .tqarg( "help:/kitchensync" ) - .tqarg( i18n( "Read Manual" ) ) - .tqarg( i18n( "Learn more about KitchenSync and its components" ) ) - .tqarg( "http://pim.kde.org" ) - .tqarg( iconSize ) - .tqarg( iconSize ) - .tqarg( html_icon_path ) - .tqarg( "http://pim.kde.org" ) - .tqarg( i18n( "Visit KitchenSync Website" ) ) - .tqarg( i18n( "Access online resources and tutorials" ) ) - .tqarg( "exec:/addGroup" ) - .tqarg( iconSize ) - .tqarg( iconSize ) - .tqarg( wizard_icon_path ) - .tqarg( "exec:/addGroup" ) - .tqarg( i18n( "Add Synchronization Group" ) ) - .tqarg( i18n( "Create group of tqdevices for synchronization" ) ); + .arg( kapp->aboutData()->version() ) + .arg( i18n( "KitchenSync synchronizes your e-mail, addressbook, calendar, to-do list and more." ) ) + .arg( "help:/kitchensync" ) + .arg( iconSize ) + .arg( iconSize ) + .arg( handbook_icon_path ) + .arg( "help:/kitchensync" ) + .arg( i18n( "Read Manual" ) ) + .arg( i18n( "Learn more about KitchenSync and its components" ) ) + .arg( "http://pim.kde.org" ) + .arg( iconSize ) + .arg( iconSize ) + .arg( html_icon_path ) + .arg( "http://pim.kde.org" ) + .arg( i18n( "Visit KitchenSync Website" ) ) + .arg( i18n( "Access online resources and tutorials" ) ) + .arg( "exec:/addGroup" ) + .arg( iconSize ) + .arg( iconSize ) + .arg( wizard_icon_path ) + .arg( "exec:/addGroup" ) + .arg( i18n( "Add Synchronization Group" ) ) + .arg( i18n( "Create group of devices for synchronization" ) ); return info; } diff --git a/kitchensync/src/configgui.cpp b/kitchensync/src/configgui.cpp index 553b2f5e5..d59a5f82e 100644 --- a/kitchensync/src/configgui.cpp +++ b/kitchensync/src/configgui.cpp @@ -45,9 +45,9 @@ #include #include -#include +#include #include -#include +#include ConfigGui::ConfigGui( const QSync::Member &member, TQWidget *parent ) : TQWidget( parent ), mMember( member ) diff --git a/kitchensync/src/configguiblank.cpp b/kitchensync/src/configguiblank.cpp index 3e9d47b65..cfeeeb332 100644 --- a/kitchensync/src/configguiblank.cpp +++ b/kitchensync/src/configguiblank.cpp @@ -24,7 +24,7 @@ #include #include -#include +#include ConfigGuiBlank::ConfigGuiBlank( const QSync::Member &member, TQWidget *parent ) : ConfigGui( member, parent ) diff --git a/kitchensync/src/configguievo2.cpp b/kitchensync/src/configguievo2.cpp index 0c79fedf0..a5bcd6f3c 100644 --- a/kitchensync/src/configguievo2.cpp +++ b/kitchensync/src/configguievo2.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -60,9 +60,9 @@ TQString ConfigGuiEvo2::save() const { TQString config = "\n"; - config += TQString( "%1\n" ).tqarg( mAddressPath->url() ); - config += TQString( "%1\n" ).tqarg( mCalendarPath->url() ); - config += TQString( "%1\n" ).tqarg( mTasksPath->url() ); + config += TQString( "%1\n" ).arg( mAddressPath->url() ); + config += TQString( "%1\n" ).arg( mCalendarPath->url() ); + config += TQString( "%1\n" ).arg( mTasksPath->url() ); config += ""; @@ -71,21 +71,21 @@ TQString ConfigGuiEvo2::save() const void ConfigGuiEvo2::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); - tqlayout->setMargin( KDialog::marginHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); + layout->setMargin( KDialog::marginHint() ); - tqlayout->addWidget( new TQLabel( i18n( "Address Book location:" ), this ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "Address Book location:" ), this ), 0, 0 ); mAddressPath = new KURLRequester( this ); mAddressPath->setMode( KFile::Directory ); - tqlayout->addMultiCellWidget( mAddressPath, 0, 0, 1, 2 ); + layout->addMultiCellWidget( mAddressPath, 0, 0, 1, 2 ); - tqlayout->addWidget( new TQLabel( i18n( "Calendar location:" ), this ), 1, 0 ); + layout->addWidget( new TQLabel( i18n( "Calendar location:" ), this ), 1, 0 ); mCalendarPath = new KURLRequester( this ); mCalendarPath->setMode( KFile::Directory ); - tqlayout->addMultiCellWidget( mCalendarPath, 1, 1, 1, 2 ); + layout->addMultiCellWidget( mCalendarPath, 1, 1, 1, 2 ); - tqlayout->addWidget( new TQLabel( i18n( "Task list location:" ), this ), 2, 0 ); + layout->addWidget( new TQLabel( i18n( "Task list location:" ), this ), 2, 0 ); mTasksPath = new KURLRequester( this ); mTasksPath->setMode( KFile::Directory ); - tqlayout->addMultiCellWidget( mTasksPath, 2, 2, 1, 2 ); + layout->addMultiCellWidget( mTasksPath, 2, 2, 1, 2 ); } diff --git a/kitchensync/src/configguifile.cpp b/kitchensync/src/configguifile.cpp index 6a8b0402c..fd7b9ff84 100644 --- a/kitchensync/src/configguifile.cpp +++ b/kitchensync/src/configguifile.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include diff --git a/kitchensync/src/configguigcalendar.cpp b/kitchensync/src/configguigcalendar.cpp index 8e8006764..1cee57ea8 100644 --- a/kitchensync/src/configguigcalendar.cpp +++ b/kitchensync/src/configguigcalendar.cpp @@ -24,7 +24,7 @@ #include -#include +#include #include #include #include diff --git a/kitchensync/src/configguignokii.cpp b/kitchensync/src/configguignokii.cpp index 84db02752..dd2697f06 100644 --- a/kitchensync/src/configguignokii.cpp +++ b/kitchensync/src/configguignokii.cpp @@ -27,7 +27,7 @@ #include -#include +#include #include #include #include @@ -37,14 +37,14 @@ ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, TQWidget *parent ) : ConfigGui( member, parent ) { - TQGridLayout *tqlayout = new TQGridLayout( topLayout() ); + TQGridLayout *layout = new TQGridLayout( topLayout() ); // Model TQLabel *label = new TQLabel( i18n("Model:"), this ); - tqlayout->addWidget( label, 0, 0 ); + layout->addWidget( label, 0, 0 ); mModel = new KComboBox( true, this ); - tqlayout->addWidget( mModel, 0, 1 ); + layout->addWidget( mModel, 0, 1 ); mModel->insertItem( "2110" ); mModel->insertItem( "3110" ); mModel->insertItem( "6110" ); @@ -67,10 +67,10 @@ ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, TQWidget *parent // Connection label = new TQLabel( i18n("Connection:"), this ); - tqlayout->addWidget( label, 1, 0 ); + layout->addWidget( label, 1, 0 ); mConnection = new TQComboBox( this ); - tqlayout->addWidget( mConnection, 1, 1 ); + layout->addWidget( mConnection, 1, 1 ); connect( mConnection, TQT_SIGNAL (activated( int ) ), this, TQT_SLOT( slotConnectionChanged ( int ) ) ); @@ -100,15 +100,15 @@ ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, TQWidget *parent mBluetooth = new BluetoothWidget( connectionWidget ); mBluetooth->hide(); - tqlayout->addMultiCellWidget( connectionWidget, 2, 2, 0, 1 ); + layout->addMultiCellWidget( connectionWidget, 2, 2, 0, 1 ); // Port mPortLabel = new TQLabel( i18n("Port:"), this ); - tqlayout->addWidget( mPortLabel, 2, 0 ); + layout->addWidget( mPortLabel, 2, 0 ); mPortLabel->hide(); mPort = new KComboBox( true, this ); - tqlayout->addWidget( mPort, 2, 1 ); + layout->addWidget( mPort, 2, 1 ); mPort->hide(); mPort->insertItem( "/dev/ircomm0" ); @@ -118,7 +118,7 @@ ConfigGuiGnokii::ConfigGuiGnokii( const QSync::Member &member, TQWidget *parent mPort->insertItem( "/dev/ttyUSB0" ); mPort->insertItem( "/dev/ttyUSB1" ); - tqlayout->setColStretch( 1, 1 ); + layout->setColStretch( 1, 1 ); topLayout()->addStretch( 1 ); } diff --git a/kitchensync/src/configguigpe.cpp b/kitchensync/src/configguigpe.cpp index 118aed14a..a57831203 100644 --- a/kitchensync/src/configguigpe.cpp +++ b/kitchensync/src/configguigpe.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -68,11 +68,11 @@ TQString ConfigGuiGpe::save() const { TQString config = ""; - config += TQString( "%1" ).tqarg( mConnectionMode->currentItem() == 0 ); - config += TQString( "%1" ).tqarg( mConnectionMode->currentItem() == 1 ); - config += TQString( "%1" ).tqarg( mIP->text() ); - config += TQString( "%1" ).tqarg( mPort->value() ); - config += TQString( "%1" ).tqarg( mUser->text() ); + config += TQString( "%1" ).arg( mConnectionMode->currentItem() == 0 ); + config += TQString( "%1" ).arg( mConnectionMode->currentItem() == 1 ); + config += TQString( "%1" ).arg( mIP->text() ); + config += TQString( "%1" ).arg( mPort->value() ); + config += TQString( "%1" ).arg( mUser->text() ); config += ""; @@ -81,23 +81,23 @@ TQString ConfigGuiGpe::save() const void ConfigGuiGpe::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( topLayout(), 12, 4, KDialog::spacingHint() ); - tqlayout->setMargin( KDialog::marginHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 4, KDialog::spacingHint() ); + layout->setMargin( KDialog::marginHint() ); - tqlayout->addWidget( new TQLabel( i18n( "Connection Mode:" ), this ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "Connection Mode:" ), this ), 0, 0 ); mConnectionMode = new KComboBox( this ); - tqlayout->addMultiCellWidget( mConnectionMode, 0, 0, 0, 3 ); + layout->addMultiCellWidget( mConnectionMode, 0, 0, 0, 3 ); - tqlayout->addWidget( new TQLabel( i18n( "IP Address:" ), this ), 1, 0 ); + layout->addWidget( new TQLabel( i18n( "IP Address:" ), this ), 1, 0 ); mIP = new KLineEdit( this ); mIP->setInputMask( "000.000.000.000" ); - tqlayout->addWidget( mIP, 1, 1 ); + layout->addWidget( mIP, 1, 1 ); - tqlayout->addWidget( new TQLabel( i18n( "Port:" ), this ), 1, 2, TQt::AlignRight ); + layout->addWidget( new TQLabel( i18n( "Port:" ), this ), 1, 2, TQt::AlignRight ); mPort = new TQSpinBox( 1, 65536, 1, this ); - tqlayout->addWidget( mPort, 1, 3 ); + layout->addWidget( mPort, 1, 3 ); - tqlayout->addWidget( new TQLabel( i18n( "User:" ), this ), 2, 0 ); + layout->addWidget( new TQLabel( i18n( "User:" ), this ), 2, 0 ); mUser = new KLineEdit( this ); - tqlayout->addMultiCellWidget( mUser, 2, 2, 1, 3 ); + layout->addMultiCellWidget( mUser, 2, 2, 1, 3 ); } diff --git a/kitchensync/src/configguiirmc.cpp b/kitchensync/src/configguiirmc.cpp index 721c82d70..abd765d02 100644 --- a/kitchensync/src/configguiirmc.cpp +++ b/kitchensync/src/configguiirmc.cpp @@ -33,7 +33,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/kitchensync/src/configguijescs.cpp b/kitchensync/src/configguijescs.cpp index b7a94c447..a1e2c1539 100644 --- a/kitchensync/src/configguijescs.cpp +++ b/kitchensync/src/configguijescs.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -61,13 +61,13 @@ TQString ConfigGuiJescs::save() const int delNotifyState; TQString config = "\n"; - config += TQString( "%1\n" ).tqarg( mUrl->text() ); - config += TQString( "%1\n" ).tqarg( mUsername->text() ); - config += TQString( "%1\n" ).tqarg( mPassword->text() ); + config += TQString( "%1\n" ).arg( mUrl->text() ); + config += TQString( "%1\n" ).arg( mUsername->text() ); + config += TQString( "%1\n" ).arg( mPassword->text() ); if ( mDelNotify->isChecked() ) { delNotifyState = 1; } else { delNotifyState = 0; } - config += TQString( "%1\n" ).tqarg( delNotifyState ); + config += TQString( "%1\n" ).arg( delNotifyState ); config += ""; @@ -76,23 +76,23 @@ TQString ConfigGuiJescs::save() const void ConfigGuiJescs::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); - tqlayout->setMargin( KDialog::marginHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); + layout->setMargin( KDialog::marginHint() ); - tqlayout->addWidget( new TQLabel( i18n( "URL:" ), this ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "URL:" ), this ), 0, 0 ); mUrl = new KLineEdit( this ); - tqlayout->addMultiCellWidget( mUrl, 0, 0, 1, 2 ); + layout->addMultiCellWidget( mUrl, 0, 0, 1, 2 ); - tqlayout->addWidget( new TQLabel( i18n( "Username:" ), this ), 1, 0 ); + layout->addWidget( new TQLabel( i18n( "Username:" ), this ), 1, 0 ); mUsername = new KLineEdit( this ); - tqlayout->addMultiCellWidget( mUsername, 1, 1, 1, 2 ); + layout->addMultiCellWidget( mUsername, 1, 1, 1, 2 ); - tqlayout->addWidget( new TQLabel( i18n( "Password:" ), this ), 2, 0 ); + layout->addWidget( new TQLabel( i18n( "Password:" ), this ), 2, 0 ); mPassword = new KLineEdit( this ); mPassword->setEchoMode( KLineEdit::Password ); - tqlayout->addMultiCellWidget( mPassword, 2, 2, 1, 2 ); + layout->addMultiCellWidget( mPassword, 2, 2, 1, 2 ); mDelNotify = new TQCheckBox( this ); mDelNotify->setText( "Notify attendees about event/task deletion" ); - tqlayout->addMultiCellWidget( mDelNotify, 3, 3, 0, 2 ); + layout->addMultiCellWidget( mDelNotify, 3, 3, 0, 2 ); } diff --git a/kitchensync/src/configguildap.cpp b/kitchensync/src/configguildap.cpp index fd9dad4b6..18c9aebcd 100644 --- a/kitchensync/src/configguildap.cpp +++ b/kitchensync/src/configguildap.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -93,26 +93,26 @@ TQString ConfigGuiLdap::save() const { TQString config = "\n"; - config += TQString( "%1\n" ).tqarg( mLdapWidget->host() ); - config += TQString( "%1\n" ).tqarg( mLdapWidget->port() ); - config += TQString( "%1\n" ).tqarg( mLdapWidget->bindDN() ); - config += TQString( "%1\n" ).tqarg( mLdapWidget->password() ); - config += TQString( "%1\n" ).tqarg( mLdapWidget->isAuthAnon() ? "1" : "0" ); - config += TQString( "%1\n" ).tqarg( mLdapWidget->dn() ); - config += TQString( "%1\n" ).tqarg( mLdapWidget->filter() ); - config += TQString( "%1\n" ).tqarg( mLdapWidget->dn() ); - config += TQString( "%1\n" ).tqarg( mKeyAttribute->text() ); + config += TQString( "%1\n" ).arg( mLdapWidget->host() ); + config += TQString( "%1\n" ).arg( mLdapWidget->port() ); + config += TQString( "%1\n" ).arg( mLdapWidget->bindDN() ); + config += TQString( "%1\n" ).arg( mLdapWidget->password() ); + config += TQString( "%1\n" ).arg( mLdapWidget->isAuthAnon() ? "1" : "0" ); + config += TQString( "%1\n" ).arg( mLdapWidget->dn() ); + config += TQString( "%1\n" ).arg( mLdapWidget->filter() ); + config += TQString( "%1\n" ).arg( mLdapWidget->dn() ); + config += TQString( "%1\n" ).arg( mKeyAttribute->text() ); TQStringList scopes; scopes << "base" << "one" << "sub"; - config += TQString( "%1\n" ).tqarg( scopes[ mSearchScope->currentItem() ] ); + config += TQString( "%1\n" ).arg( scopes[ mSearchScope->currentItem() ] ); config += TQString( "SIMPLE\n" ); - config += TQString( "%1\n" ).tqarg( mEncryption->isChecked() ? "1" : "0" ); + config += TQString( "%1\n" ).arg( mEncryption->isChecked() ? "1" : "0" ); - config += TQString( "%1\n" ).tqarg( mReadLdap->isChecked() ? "1" : "0" ); - config += TQString( "%1\n" ).tqarg( mWriteLdap->isChecked() ? "1" : "0" ); + config += TQString( "%1\n" ).arg( mReadLdap->isChecked() ? "1" : "0" ); + config += TQString( "%1\n" ).arg( mWriteLdap->isChecked() ? "1" : "0" ); config += ""; @@ -121,8 +121,8 @@ TQString ConfigGuiLdap::save() const void ConfigGuiLdap::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( topLayout(), 12, 4, KDialog::spacingHint() ); - tqlayout->setMargin( KDialog::marginHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 4, KDialog::spacingHint() ); + layout->setMargin( KDialog::marginHint() ); mLdapWidget = new KABC::LdapConfigWidget( KABC::LdapConfigWidget::W_HOST | KABC::LdapConfigWidget::W_PORT | @@ -139,14 +139,14 @@ void ConfigGuiLdap::initGUI() mReadLdap = new TQCheckBox( i18n( "Load data from LDAP" ), this ); mWriteLdap = new TQCheckBox( i18n( "Save data to LDAP" ), this ); - tqlayout->addMultiCellWidget( mLdapWidget, 0, 9, 0, 3 ); - tqlayout->addWidget( new TQLabel( i18n( "Key Attribute:" ), this ), 10, 0 ); - tqlayout->addMultiCellWidget( mKeyAttribute, 10, 10, 1, 2 ); - tqlayout->addWidget( new TQLabel( i18n( "Search Scope:" ), this ), 11, 0 ); - tqlayout->addMultiCellWidget( mSearchScope, 11, 11, 1, 2 ); - tqlayout->addWidget( mEncryption, 12, 0 ); - tqlayout->addWidget( mReadLdap, 13, 0 ); - tqlayout->addWidget( mWriteLdap, 13, 3 ); + layout->addMultiCellWidget( mLdapWidget, 0, 9, 0, 3 ); + layout->addWidget( new TQLabel( i18n( "Key Attribute:" ), this ), 10, 0 ); + layout->addMultiCellWidget( mKeyAttribute, 10, 10, 1, 2 ); + layout->addWidget( new TQLabel( i18n( "Search Scope:" ), this ), 11, 0 ); + layout->addMultiCellWidget( mSearchScope, 11, 11, 1, 2 ); + layout->addWidget( mEncryption, 12, 0 ); + layout->addWidget( mReadLdap, 13, 0 ); + layout->addWidget( mWriteLdap, 13, 3 ); } diff --git a/kitchensync/src/configguimoto.cpp b/kitchensync/src/configguimoto.cpp index e461a808f..da17454e3 100644 --- a/kitchensync/src/configguimoto.cpp +++ b/kitchensync/src/configguimoto.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -43,7 +43,7 @@ void ConfigGuiMoto::load( const TQString &xml ) TQDomNode node; for( node = docElement.firstChild(); !node.isNull(); node = node.nextSibling() ) { TQDomElement element = node.toElement(); - if ( element.tagName() == "tqdevice" ) { + if ( element.tagName() == "device" ) { mDeviceString->setText( element.text() ); } } @@ -53,7 +53,7 @@ TQString ConfigGuiMoto::save() const { TQString config = "\n"; - config += TQString( "%1\n" ).tqarg( mDeviceString->text() ); + config += TQString( "%1\n" ).arg( mDeviceString->text() ); config += ""; @@ -62,10 +62,10 @@ TQString ConfigGuiMoto::save() const void ConfigGuiMoto::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); - tqlayout->setMargin( KDialog::marginHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 3, KDialog::spacingHint() ); + layout->setMargin( KDialog::marginHint() ); - tqlayout->addWidget( new TQLabel( i18n( "Device String:" ), this ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "Device String:" ), this ), 0, 0 ); mDeviceString = new KLineEdit( this ); - tqlayout->addMultiCellWidget( mDeviceString, 0, 0, 1, 2 ); + layout->addMultiCellWidget( mDeviceString, 0, 0, 1, 2 ); } diff --git a/kitchensync/src/configguiopie.cpp b/kitchensync/src/configguiopie.cpp index c74623345..9620f9c34 100644 --- a/kitchensync/src/configguiopie.cpp +++ b/kitchensync/src/configguiopie.cpp @@ -26,59 +26,59 @@ #include #include #include -#include +#include #include #include ConfigGuiOpie::ConfigGuiOpie( const QSync::Member &member, TQWidget *parent ) : ConfigGui( member, parent ) { - TQGridLayout *tqlayout = new TQGridLayout( topLayout() ); + TQGridLayout *layout = new TQGridLayout( topLayout() ); TQLabel *label = new TQLabel( i18n("Device IP:"), this ); - tqlayout->addWidget( label, 0, 0 ); + layout->addWidget( label, 0, 0 ); mDeviceIP = new TQLineEdit( this ); mDeviceIP->setInputMask( "000.000.000.000" ); label->setBuddy( mDeviceIP ); - tqlayout->addWidget( mDeviceIP, 0, 1 ); + layout->addWidget( mDeviceIP, 0, 1 ); label = new TQLabel( i18n("Device Type:"), this ); - tqlayout->addWidget( label, 1, 0 ); + layout->addWidget( label, 1, 0 ); mDeviceType = new TQComboBox( this ); label->setBuddy( mDeviceType ); - tqlayout->addWidget( mDeviceType, 1, 1 ); + layout->addWidget( mDeviceType, 1, 1 ); label = new TQLabel( i18n("Username:"), this ); - tqlayout->addWidget( label, 2, 0 ); + layout->addWidget( label, 2, 0 ); mUserName = new TQLineEdit( this ); label->setBuddy( mUserName ); - tqlayout->addWidget( mUserName, 2, 1 ); + layout->addWidget( mUserName, 2, 1 ); label = new TQLabel( i18n("Password:"), this ); - tqlayout->addWidget( label, 3, 0 ); + layout->addWidget( label, 3, 0 ); mPassword = new TQLineEdit( this ); mPassword->setEchoMode( TQLineEdit::Password ); label->setBuddy( mPassword ); - tqlayout->addWidget( mPassword, 3, 1 ); + layout->addWidget( mPassword, 3, 1 ); label = new TQLabel( i18n("Protocol:"), this ); - tqlayout->addWidget( label, 4, 0 ); + layout->addWidget( label, 4, 0 ); mConnectionType = new TQComboBox( this ); label->setBuddy( mConnectionType ); - tqlayout->addWidget( mConnectionType, 4, 1 ); + layout->addWidget( mConnectionType, 4, 1 ); label = new TQLabel( i18n("Port:"), this ); - tqlayout->addWidget( label, 5, 0 ); + layout->addWidget( label, 5, 0 ); mPort = new TQSpinBox( this ); mPort->setRange( 0, 65335 ); label->setBuddy( mPort ); - tqlayout->addWidget( mPort, 5, 1 ); + layout->addWidget( mPort, 5, 1 ); mDeviceType->insertItem( i18n("Opie/OpenZaurus") ); mDeviceType->insertItem( i18n("TQtopia2") ); @@ -105,7 +105,7 @@ void ConfigGuiOpie::load( const TQString &xml ) mDeviceIP->setText( e.text() ); } else if ( e.tagName() == "port" ) { mPort->setValue( e.text().toInt() ); - } else if ( e.tagName() == "tqdevice" ) { + } else if ( e.tagName() == "device" ) { if ( e.text() == "opie" ) mDeviceType->setCurrentItem( 0 ); else @@ -126,7 +126,7 @@ TQString ConfigGuiOpie::save() const xml += "" + mUserName->text() + ""; xml += "" + mPassword->text() + ""; xml += "" + mDeviceIP->text() + ""; - xml += "" + TQString( mDeviceType->currentItem() == 0 ? "opie" : "qtopia2" ) + ""; + xml += "" + TQString( mDeviceType->currentItem() == 0 ? "opie" : "qtopia2" ) + ""; xml += "" + TQString::number( mPort->value() ) + ""; xml += "" + TQString( mConnectionType->currentItem() == 0 ? "scp" : "ftp" ) + ""; xml += ""; diff --git a/kitchensync/src/configguipalm.cpp b/kitchensync/src/configguipalm.cpp index 03d87cdb4..a3a337191 100644 --- a/kitchensync/src/configguipalm.cpp +++ b/kitchensync/src/configguipalm.cpp @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/kitchensync/src/configguisunbird.cpp b/kitchensync/src/configguisunbird.cpp index d51101aeb..de8a14c6c 100644 --- a/kitchensync/src/configguisunbird.cpp +++ b/kitchensync/src/configguisunbird.cpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include #include #include @@ -57,14 +57,14 @@ ConfigGuiSunbird::ConfigGuiSunbird( const QSync::Member &member, TQWidget *paren KPushButton *mLocalAddButton = new KPushButton( mLocalWidget ); mLocalAddButton->setText( i18n( "Add new calendar" ) ); - mLocalAddButton->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + mLocalAddButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mLocalLayout->addWidget( mLocalAddButton ); connect( mLocalAddButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( addLocalCalendar() ) ); KPushButton *mWebdavAddButton = new KPushButton( mWebdavWidget ); mWebdavAddButton->setText( i18n( "Add new calendar" ) ); - mWebdavAddButton->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + mWebdavAddButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); mWebdavLayout->addWidget( mWebdavAddButton ); connect( mWebdavAddButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( addWebdavCalendar() ) ); @@ -100,7 +100,7 @@ void ConfigGuiSunbird::load( const TQString &xml ) LocalCalendar *cal = new LocalCalendar( path, defaultcal, days, mLocalWidget ); mLocalLayout->removeItem( mLocalSpacer ); - cal->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); + cal->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); mLocalLayout->addWidget( cal ); mLocalLayout->addItem( mLocalSpacer ); mLocalList.append( cal ); @@ -122,7 +122,7 @@ void ConfigGuiSunbird::load( const TQString &xml ) WebdavCalendar *cal = new WebdavCalendar( username, password, url, defaultcal, days, mWebdavWidget ); mWebdavLayout->removeItem( mWebdavSpacer ); - cal->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); + cal->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); mWebdavLayout->addWidget( cal ); mWebdavLayout->addItem( mWebdavSpacer ); mWebdavList.append( cal ); @@ -140,10 +140,10 @@ TQString ConfigGuiSunbird::save() const for ( uint i = 0; i < mLocalList.count(); ++i ) { LocalCalendar *lcal = mLocalList[ i ]; config += TQString( "mPathRequester->url() ); + config += TQString( "path=\"%1\" " ).arg( lcal->mPathRequester->url() ); if ( lcal->mDaysCheckBox->isChecked() ) { - config += TQString( "deletedaysold=\"%1\" " ).tqarg( lcal->mDaysSpinBox->value() ); + config += TQString( "deletedaysold=\"%1\" " ).arg( lcal->mDaysSpinBox->value() ); } if ( lcal->mDefaultCheckBox->isChecked() ) { config += TQString( "default=\"1\" " ); @@ -154,12 +154,12 @@ TQString ConfigGuiSunbird::save() const for ( uint i = 0; i < mWebdavList.count(); ++i ) { WebdavCalendar *wcal = mWebdavList[ i ]; config += TQString( "mUsername->text() ); - config += TQString( "password=\"%1\" " ).tqarg( wcal->mPassword->text() ); - config += TQString( "url=\"%1\" " ).tqarg( wcal->mUrl->text() ); + config += TQString( "username=\"%1\" " ).arg( wcal->mUsername->text() ); + config += TQString( "password=\"%1\" " ).arg( wcal->mPassword->text() ); + config += TQString( "url=\"%1\" " ).arg( wcal->mUrl->text() ); if ( wcal->mDaysCheckBox->isChecked() ) { - config += TQString( "deletedaysold=\"%1\" " ).tqarg( wcal->mDaysSpinBox->value() ); + config += TQString( "deletedaysold=\"%1\" " ).arg( wcal->mDaysSpinBox->value() ); } if ( wcal->mDefaultCheckBox->isChecked() ) { config += TQString( "default=\"1\" " ); @@ -175,7 +175,7 @@ void ConfigGuiSunbird::addLocalCalendar() { LocalCalendar *cal = new LocalCalendar( mLocalWidget ); mLocalLayout->removeItem( mLocalSpacer ); - cal->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); + cal->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); mLocalLayout->addWidget( cal ); mLocalLayout->addItem( mLocalSpacer ); mLocalList.append( cal ); @@ -194,7 +194,7 @@ void ConfigGuiSunbird::addWebdavCalendar() { WebdavCalendar *cal = new WebdavCalendar( mWebdavWidget ); mWebdavLayout->removeItem( mWebdavSpacer ); - cal->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); + cal->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); mWebdavLayout->addWidget( cal ); mWebdavLayout->addItem( mWebdavSpacer ); mWebdavList.append( cal ); @@ -239,7 +239,7 @@ void LocalCalendar::initGui() mDaysSpinBox = new TQSpinBox( this ); mDaysSpinBox->setDisabled( true ); - mDaysSpinBox->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + mDaysSpinBox->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); connect( mDaysCheckBox, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggleDays( bool ) ) ); @@ -253,7 +253,7 @@ void LocalCalendar::initGui() mPathRequester = new KURLRequester( this ); KPushButton *removeButton = new KPushButton( this ); - removeButton->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + removeButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); removeButton->setText( i18n( "Remove" ) ); connect( removeButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( deleteWidget() ) ); @@ -308,7 +308,7 @@ void WebdavCalendar::initGui() mDaysSpinBox = new TQSpinBox( this ); mDaysSpinBox->setDisabled( true ); - mDaysSpinBox->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); + mDaysSpinBox->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); connect( mDaysCheckBox, TQT_SIGNAL( toggled( bool ) ), this, TQT_SLOT( toggleDays( bool ) ) ); diff --git a/kitchensync/src/configguisynce.cpp b/kitchensync/src/configguisynce.cpp index 898300769..c5c8a8583 100644 --- a/kitchensync/src/configguisynce.cpp +++ b/kitchensync/src/configguisynce.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -60,10 +60,10 @@ TQString ConfigGuiSynce::save() const { TQString config = "\n"; - config += TQString( "%1\n" ).tqarg( mContacts->isChecked() ? "1" : "0" ); - config += TQString( "%1\n" ).tqarg( mTodos->isChecked() ? "1" : "0" ); - config += TQString( "%1\n" ).tqarg( mCalendar->isChecked() ? "1" : "0" ); - config += TQString( "%1\n" ).tqarg( mFile->text() ); + config += TQString( "%1\n" ).arg( mContacts->isChecked() ? "1" : "0" ); + config += TQString( "%1\n" ).arg( mTodos->isChecked() ? "1" : "0" ); + config += TQString( "%1\n" ).arg( mCalendar->isChecked() ? "1" : "0" ); + config += TQString( "%1\n" ).arg( mFile->text() ); config += ""; @@ -72,22 +72,22 @@ TQString ConfigGuiSynce::save() const void ConfigGuiSynce::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( topLayout(), 12, 2, KDialog::spacingHint() ); - tqlayout->setMargin( KDialog::marginHint() ); + TQGridLayout *layout = new TQGridLayout( topLayout(), 12, 2, KDialog::spacingHint() ); + layout->setMargin( KDialog::marginHint() ); mContacts = new TQCheckBox( this ); mContacts->setText( "Sync Contacts" ); - tqlayout->addMultiCellWidget( mContacts, 0, 0, 0, 1 ); + layout->addMultiCellWidget( mContacts, 0, 0, 0, 1 ); mTodos = new TQCheckBox( this ); mTodos->setText( "Sync \'Todo\' items" ); - tqlayout->addMultiCellWidget( mTodos, 1, 1, 0, 1 ); + layout->addMultiCellWidget( mTodos, 1, 1, 0, 1 ); mCalendar = new TQCheckBox( this ); mCalendar->setText( "Sync Calendar" ); - tqlayout->addMultiCellWidget( mCalendar, 2, 2, 0, 1 ); + layout->addMultiCellWidget( mCalendar, 2, 2, 0, 1 ); - tqlayout->addWidget( new TQLabel( i18n( "File:" ), this ), 3, 0 ); + layout->addWidget( new TQLabel( i18n( "File:" ), this ), 3, 0 ); mFile = new KLineEdit( this ); - tqlayout->addWidget( mFile, 3, 1 ); + layout->addWidget( mFile, 3, 1 ); } diff --git a/kitchensync/src/configguisyncmlhttp.cpp b/kitchensync/src/configguisyncmlhttp.cpp index 26a8c2241..9340f6e57 100644 --- a/kitchensync/src/configguisyncmlhttp.cpp +++ b/kitchensync/src/configguisyncmlhttp.cpp @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/kitchensync/src/configguisyncmlobex.cpp b/kitchensync/src/configguisyncmlobex.cpp index 61833b4eb..479593e5a 100644 --- a/kitchensync/src/configguisyncmlobex.cpp +++ b/kitchensync/src/configguisyncmlobex.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include @@ -246,7 +246,7 @@ TQString ConfigGuiSyncmlObex::save() const ConnectionTypeList::ConstIterator it; for ( it = mConnectionTypes.begin(); it != mConnectionTypes.end(); it++ ) { if ( mConnection->currentText() == (*it).second ) { - xml += "" + TQString("%1").tqarg((*it).first) + "\n"; + xml += "" + TQString("%1").arg((*it).first) + "\n"; break; } } @@ -264,7 +264,7 @@ TQString ConfigGuiSyncmlObex::save() const SyncmlVersionList::ConstIterator itVersion; for ( itVersion = mSyncmlVersions.begin(); itVersion != mSyncmlVersions.end(); itVersion++ ) { if ( mSyncmlVersion->currentText() == (*itVersion).second ) { - xml += "" + TQString("%1").tqarg((*itVersion).first) + "\n"; + xml += "" + TQString("%1").arg((*itVersion).first) + "\n"; break; } } diff --git a/kitchensync/src/connectionwidgets.cpp b/kitchensync/src/connectionwidgets.cpp index bb25c271d..e1a0b9101 100644 --- a/kitchensync/src/connectionwidgets.cpp +++ b/kitchensync/src/connectionwidgets.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include @@ -43,24 +43,24 @@ BluetoothWidget::BluetoothWidget( TQWidget *parent ) : TQWidget( parent ) { - TQGridLayout *tqlayout = new TQGridLayout( this ); + TQGridLayout *layout = new TQGridLayout( this ); mAddress = new KLineEdit( this ); mAddress->setInputMask( ">NN:NN:NN:NN:NN:NN;" ); - tqlayout->addWidget( mAddress, 1, 0 ); + layout->addWidget( mAddress, 1, 0 ); TQLabel *label = new TQLabel( i18n( "Bluetooth address:" ), this ); label->setBuddy( mAddress ); - tqlayout->addWidget( label, 0, 0 ); + layout->addWidget( label, 0, 0 ); mChannel = new KLineEdit( this ); - tqlayout->addWidget( mChannel, 1, 1 ); + layout->addWidget( mChannel, 1, 1 ); mChannelLabel = new TQLabel( i18n( "Channel:" ), this ); mChannelLabel->setBuddy( mChannel ); - tqlayout->addWidget( mChannelLabel, 0, 1 ); + layout->addWidget( mChannelLabel, 0, 1 ); - tqlayout->setRowStretch( 2, 1 ); + layout->setRowStretch( 2, 1 ); } void BluetoothWidget::hideChannel() @@ -103,23 +103,23 @@ TQString BluetoothWidget::channel() const IRWidget::IRWidget( TQWidget *parent ) : TQWidget( parent ) { - TQGridLayout *tqlayout = new TQGridLayout( this, 3, 3, 11, 3 ); + TQGridLayout *layout = new TQGridLayout( this, 3, 3, 11, 3 ); mDevice = new KLineEdit( this ); mSerialNumber = new KLineEdit( this ); - tqlayout->addWidget( mDevice, 1, 0 ); - tqlayout->addWidget( mSerialNumber, 1, 1 ); + layout->addWidget( mDevice, 1, 0 ); + layout->addWidget( mSerialNumber, 1, 1 ); TQLabel *label = new TQLabel( i18n( "Device Name:" ), this ); label->setBuddy( mDevice ); - tqlayout->addWidget( label, 0, 0 ); + layout->addWidget( label, 0, 0 ); label = new TQLabel( i18n( "Serial Number:" ), this ); label->setBuddy( mSerialNumber ); - tqlayout->addWidget( label, 0, 1 ); + layout->addWidget( label, 0, 1 ); - tqlayout->setRowStretch( 2, 1 ); + layout->setRowStretch( 2, 1 ); } void IRWidget::load( const TQDomElement &parent ) @@ -149,23 +149,23 @@ void IRWidget::save( TQDomDocument &doc, TQDomElement &parent ) CableWidget::CableWidget( TQWidget *parent ) : TQWidget( parent ) { - TQGridLayout *tqlayout = new TQGridLayout( this, 3, 2, 11, 3 ); + TQGridLayout *layout = new TQGridLayout( this, 3, 2, 11, 3 ); mManufacturer = new KComboBox( this ); mDevice = new KComboBox( true, this ); - tqlayout->addWidget( mManufacturer, 0, 1 ); - tqlayout->addWidget( mDevice, 1, 1 ); + layout->addWidget( mManufacturer, 0, 1 ); + layout->addWidget( mDevice, 1, 1 ); TQLabel *label = new TQLabel( i18n( "Device Manufacturer:" ), this ); label->setBuddy( mManufacturer ); - tqlayout->addWidget( label, 0, 0 ); + layout->addWidget( label, 0, 0 ); label = new TQLabel( i18n( "Device:" ), this ); label->setBuddy( mDevice ); - tqlayout->addWidget( label, 1, 0 ); + layout->addWidget( label, 1, 0 ); - tqlayout->setRowStretch( 2, 1 ); + layout->setRowStretch( 2, 1 ); mManufacturer->insertItem( i18n( "SonyEricsson/Ericsson" ) ); mManufacturer->insertItem( i18n( "Siemens" ) ); @@ -202,16 +202,16 @@ void CableWidget::save( TQDomDocument &doc, TQDomElement &parent ) UsbWidget::UsbWidget( TQWidget *parent ) : TQWidget( parent ) { - TQGridLayout *tqlayout = new TQGridLayout( this, 3, 2, 11, 3); + TQGridLayout *layout = new TQGridLayout( this, 3, 2, 11, 3); mInterface = new TQSpinBox( this ); - tqlayout->addWidget( mInterface, 0, 1 ); + layout->addWidget( mInterface, 0, 1 ); TQLabel *label = new TQLabel( i18n( "USB Interface:" ), this ); label->setBuddy( mInterface ); - tqlayout->addWidget( label, 0, 0 ); + layout->addWidget( label, 0, 0 ); - tqlayout->setRowStretch( 2, 1 ); + layout->setRowStretch( 2, 1 ); } void UsbWidget::setInterface( int interface ) diff --git a/kitchensync/src/genericdiffalgo.cpp b/kitchensync/src/genericdiffalgo.cpp index 209382ed7..21b83f454 100644 --- a/kitchensync/src/genericdiffalgo.cpp +++ b/kitchensync/src/genericdiffalgo.cpp @@ -57,11 +57,11 @@ void GenericDiffAlgo::run() for ( uint i = 0; i < lines; ++i ) { if ( i < leftList.count() && i < rightList.count() ) { if ( !compareString( leftList[ i ], rightList[ i ] ) ) - conflictField( i18n( "Line %1" ).tqarg( i ), leftList[ i ], rightList[ i ] ); + conflictField( i18n( "Line %1" ).arg( i ), leftList[ i ], rightList[ i ] ); } else if ( i < leftList.count() && i >= rightList.count() ) { - additionalLeftField( i18n( "Line %1" ).tqarg( i ), leftList[ i ] ); + additionalLeftField( i18n( "Line %1" ).arg( i ), leftList[ i ] ); } else if ( i >= leftList.count() && i < rightList.count() ) { - additionalRightField( i18n( "Line %1" ).tqarg( i ), rightList[ i ] ); + additionalRightField( i18n( "Line %1" ).arg( i ), rightList[ i ] ); } } diff --git a/kitchensync/src/groupconfig.cpp b/kitchensync/src/groupconfig.cpp index 99ff35fdb..8fb6bdc04 100644 --- a/kitchensync/src/groupconfig.cpp +++ b/kitchensync/src/groupconfig.cpp @@ -38,7 +38,7 @@ #include -#include +#include #include GroupConfig::GroupConfig( TQWidget *parent ) @@ -50,8 +50,8 @@ GroupConfig::GroupConfig( TQWidget *parent ) TQFrame *titleFrame = new TQFrame( this ); topLayout->addWidget( titleFrame ); - titleFrame->setPaletteForegroundColor( tqcolorGroup().light() ); - titleFrame->setPaletteBackgroundColor( tqcolorGroup().mid() ); + titleFrame->setPaletteForegroundColor( colorGroup().light() ); + titleFrame->setPaletteBackgroundColor( colorGroup().mid() ); TQBoxLayout *nameLayout = new TQHBoxLayout( titleFrame ); nameLayout->setMargin( 4 ); @@ -131,7 +131,7 @@ void GroupConfig::updateMembers() QSync::Member member = *it; MemberInfo mi( member ); TQFrame *page = mMemberView->addPage( mi.name(), - TQString( "%1 (%2)" ).tqarg( mi.name() ).tqarg(member.pluginName()), mi.desktopIcon() ); + TQString( "%1 (%2)" ).arg( mi.name() ).arg(member.pluginName()), mi.desktopIcon() ); TQBoxLayout *pageLayout = new TQVBoxLayout( page ); mConfigPages.append( page ); @@ -165,7 +165,7 @@ void GroupConfig::addMember() QSync::Result result = SyncProcessManager::self()->addMember( mProcess, plugin ); if ( result.isError() ) { KMessageBox::error( this, i18n("Error adding member %1\n%2\nType: %3") - .tqarg( plugin.name() ).tqarg( result.message() ).tqarg( result.type() ) ); + .arg( plugin.name() ).arg( result.message() ).arg( result.type() ) ); } else { updateMembers(); diff --git a/kitchensync/src/groupconfigcommon.cpp b/kitchensync/src/groupconfigcommon.cpp index 5a0cf49d8..dbbc89589 100644 --- a/kitchensync/src/groupconfigcommon.cpp +++ b/kitchensync/src/groupconfigcommon.cpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include @@ -41,8 +41,8 @@ ObjectTypeSelector::ObjectTypeSelector( TQWidget *parent ) : TQWidget( parent ) { - TQGridLayout *tqlayout = new TQGridLayout( this ); - tqlayout->setMargin( 0 ); + TQGridLayout *layout = new TQGridLayout( this ); + layout->setMargin( 0 ); const QSync::Conversion conversion = SyncProcessManager::self()->environment()->conversion(); @@ -78,7 +78,7 @@ ObjectTypeSelector::ObjectTypeSelector( TQWidget *parent ) continue; TQCheckBox *objectCheckBox = new TQCheckBox( objectTypeMap[ objectType ], this ); - tqlayout->addWidget( objectCheckBox, row, col ); + layout->addWidget( objectCheckBox, row, col ); mObjectTypeChecks.insert( objectType, objectCheckBox ); col++; @@ -128,19 +128,19 @@ void ObjectTypeSelector::save( QSync::Group group ) GroupConfigCommon::GroupConfigCommon( TQWidget *parent ) : TQWidget( parent ) { - TQGridLayout *tqlayout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() ); - tqlayout->addWidget( new TQLabel( i18n( "Name:" ), this ), 0, 0 ); + layout->addWidget( new TQLabel( i18n( "Name:" ), this ), 0, 0 ); mGroupName = new KLineEdit( this ); - tqlayout->addWidget( mGroupName, 0, 1 ); + layout->addWidget( mGroupName, 0, 1 ); - tqlayout->addWidget( new TQLabel( i18n( "Object Types to be Synchronized:"), this ), 1, 0, TQt::AlignTop ); + layout->addWidget( new TQLabel( i18n( "Object Types to be Synchronized:"), this ), 1, 0, TQt::AlignTop ); mObjectTypeSelector = new ObjectTypeSelector( this ); - tqlayout->addWidget( mObjectTypeSelector, 1, 1 ); + layout->addWidget( mObjectTypeSelector, 1, 1 ); - tqlayout->setRowStretch( 2, 1 ); + layout->setRowStretch( 2, 1 ); } void GroupConfigCommon::setSyncProcess( SyncProcess *syncProcess ) diff --git a/kitchensync/src/groupconfigdialog.cpp b/kitchensync/src/groupconfigdialog.cpp index 4d8be65d0..b2bfe470a 100644 --- a/kitchensync/src/groupconfigdialog.cpp +++ b/kitchensync/src/groupconfigdialog.cpp @@ -24,7 +24,7 @@ #include -#include +#include GroupConfigDialog::GroupConfigDialog( TQWidget *parent, SyncProcess *process ) : KDialogBase( parent, 0, true, i18n("Configure Synchronization Group"), diff --git a/kitchensync/src/groupitem.cpp b/kitchensync/src/groupitem.cpp index 3a294f5ba..ed240cd32 100644 --- a/kitchensync/src/groupitem.cpp +++ b/kitchensync/src/groupitem.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include @@ -50,7 +50,7 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process ) boldFont.setBold( true ); boldFont.setPointSize( boldFont.pointSize() + 2 ); - TQGridLayout *tqlayout = new TQGridLayout( this, 4, 4, KDialog::marginHint(), KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( this, 4, 4, KDialog::marginHint(), KDialog::spacingHint() ); mBox = new TQVBox( this ); mBox->setMargin( 5 ); @@ -71,38 +71,38 @@ GroupItem::GroupItem( KWidgetList *parent, SyncProcess *process ) mIcon = new TQLabel( hbox ); mIcon->setPixmap( icon ); - mIcon->setFixedSize( mIcon->tqsizeHint() ); - mIcon->setPaletteBackgroundColor( tqcolorGroup().mid() ); + mIcon->setFixedSize( mIcon->sizeHint() ); + mIcon->setPaletteBackgroundColor( colorGroup().mid() ); mGroupName = new TQLabel( hbox ); - mGroupName->tqsetAlignment( AlignLeft | AlignVCenter ); + mGroupName->setAlignment( AlignLeft | AlignVCenter ); mGroupName->setIndent( KDialog::spacingHint() ); mGroupName->setFont( boldFont ); - mGroupName->setPaletteForegroundColor( tqcolorGroup().light() ); - mGroupName->setPaletteBackgroundColor( tqcolorGroup().mid() ); - - 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() ); - - 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->tqpalette().active().base() ); + mGroupName->setPaletteForegroundColor( colorGroup().light() ); + mGroupName->setPaletteBackgroundColor( colorGroup().mid() ); + + mStatus = new TQLabel( hbox ); + mStatus->setAlignment( TQt::AlignRight ); + mStatus->setAlignment( AlignRight | AlignVCenter ); + mStatus->setIndent( KDialog::spacingHint() ); + mStatus->setFont( boldFont ); + mStatus->setPaletteForegroundColor( colorGroup().light() ); + mStatus->setPaletteBackgroundColor( colorGroup().mid() ); + mStatus->setText( i18n( "Ready" ) ); + + hbox->setPaletteBackgroundColor( colorGroup().mid() ); + hbox->setMaximumHeight( hbox->minimumSizeHint().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 ); + + setPaletteBackgroundColor( kapp->palette().active().base() ); connect( mCallbackHandler, TQT_SIGNAL( conflict( QSync::SyncMapping ) ), this, TQT_SLOT( conflict( QSync::SyncMapping ) ) ); @@ -139,11 +139,11 @@ void GroupItem::update() { clear(); - mGroupName->setText( i18n( "Group: %1" ).tqarg( mSyncProcess->group().name() ) ); + mGroupName->setText( i18n( "Group: %1" ).arg( mSyncProcess->group().name() ) ); TQDateTime dateTime = mSyncProcess->group().lastSynchronization(); if ( dateTime.isValid() ) - mTime->setText( i18n( "Last synchronized on: %1" ).tqarg( KGlobal::locale()->formatDateTime( dateTime ) ) ); + mTime->setText( i18n( "Last synchronized on: %1" ).arg( KGlobal::locale()->formatDateTime( dateTime ) ) ); else mTime->setText( i18n( "Not synchronized yet" ) ); @@ -189,14 +189,14 @@ void GroupItem::change( const QSync::SyncChangeUpdate &update ) switch ( update.type() ) { case QSync::SyncChangeUpdate::Received: mProcessedItems++; - mtqStatus->setText( i18n( "%1 entries read" ).tqarg( mProcessedItems ) ); + mStatus->setText( i18n( "%1 entries read" ).arg( mProcessedItems ) ); break; case QSync::SyncChangeUpdate::ReceivedInfo: - mtqStatus->setText( i18n( "Receive information" ) ); + mStatus->setText( i18n( "Receive information" ) ); break; case QSync::SyncChangeUpdate::Sent: mProcessedItems--; - mtqStatus->setText( i18n( "%1 entries written" ).tqarg( mMaxProcessedItems - mProcessedItems ) ); + mStatus->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: - mtqStatus->setText( i18n( "Error" ) ); + mStatus->setText( i18n( "Error" ) ); KPassivePopup::message( update.result().message(), this ); break; case QSync::SyncChangeUpdate::ReceiveError: - mtqStatus->setText( i18n( "Error" ) ); + mStatus->setText( i18n( "Error" ) ); KPassivePopup::message( update.result().message(), this ); break; default: - mtqStatus->setText( TQString() ); + mStatus->setText( TQString() ); break; } } @@ -233,24 +233,24 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update ) { switch ( update.type() ) { case QSync::SyncEngineUpdate::EndPhaseConnected: - mtqStatus->setText( i18n( "Connected" ) ); + mStatus->setText( i18n( "Connected" ) ); mProgressBar->setProgress( 0 ); mSynchronizing = true; mSyncAction->setText( "Abort Synchronization" ); break; case QSync::SyncEngineUpdate::EndPhaseRead: - mtqStatus->setText( i18n( "Data read" ) ); + mStatus->setText( i18n( "Data read" ) ); break; case QSync::SyncEngineUpdate::EndPhaseWrite: - mtqStatus->setText( i18n( "Data written" ) ); + mStatus->setText( i18n( "Data written" ) ); mProgressBar->setProgress( 100 ); mProcessedItems = mMaxProcessedItems = 0; break; case QSync::SyncEngineUpdate::EndPhaseDisconnected: - mtqStatus->setText( i18n( "Disconnected" ) ); + mStatus->setText( i18n( "Disconnected" ) ); break; case QSync::SyncEngineUpdate::Error: - mtqStatus->setText( i18n( "Synchronization failed" ) ); + mStatus->setText( i18n( "Synchronization failed" ) ); KPassivePopup::message( update.result().message(), this ); this->update(); @@ -258,8 +258,8 @@ void GroupItem::engine( const QSync::SyncEngineUpdate &update ) mSyncAction->setText( i18n( "Synchronize Now" ) ); break; case QSync::SyncEngineUpdate::SyncSuccessfull: - mtqStatus->setText( i18n( "Successfully synchronized" ) ); - mSyncProcess->group().setLastSynchronization( TQDateTime::tqcurrentDateTime() ); + mStatus->setText( i18n( "Successfully synchronized" ) ); + mSyncProcess->group().setLastSynchronization( TQDateTime::currentDateTime() ); 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: - mtqStatus->setText( i18n( "Previous synchronization failed" ) ); + mStatus->setText( i18n( "Previous synchronization failed" ) ); break; case QSync::SyncEngineUpdate::EndConflicts: - mtqStatus->setText( i18n( "Conflicts solved" ) ); + mStatus->setText( i18n( "Conflicts solved" ) ); mMaxProcessedItems = mProcessedItems; break; default: - mtqStatus->setText( TQString() ); + mStatus->setText( TQString() ); break; } } @@ -298,19 +298,19 @@ void GroupItem::member( const QSync::SyncMemberUpdate &update ) (*it)->seStatusMessage( i18n( "Disconnected" ) ); break; case QSync::SyncMemberUpdate::ConnectError: - (*it)->seStatusMessage( i18n( "Error: %1" ).tqarg( update.result().message() ) ); + (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) ); break; case QSync::SyncMemberUpdate::GetChangesError: - (*it)->seStatusMessage( i18n( "Error: %1" ).tqarg( update.result().message() ) ); + (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) ); break; case QSync::SyncMemberUpdate::CommittedAllError: - (*it)->seStatusMessage( i18n( "Error: %1" ).tqarg( update.result().message() ) ); + (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) ); break; case QSync::SyncMemberUpdate::SyncDoneError: - (*it)->seStatusMessage( i18n( "Error: %1" ).tqarg( update.result().message() ) ); + (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) ); break; case QSync::SyncMemberUpdate::DisconnectedError: - (*it)->seStatusMessage( i18n( "Error: %1" ).tqarg( update.result().message() ) ); + (*it)->seStatusMessage( i18n( "Error: %1" ).arg( update.result().message() ) ); break; default: break; @@ -358,24 +358,24 @@ MemberItem::MemberItem( TQWidget *parent, SyncProcess *process, QSync::Plugin plugin = member.plugin(); - TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); + TQVBoxLayout *layout = new TQVBoxLayout( this ); TQHBox* box = new TQHBox( this ); box->setMargin( 5 ); box->setSpacing( 6 ); - tqlayout->addWidget( box ); + layout->addWidget( box ); mIcon = new TQLabel( box ); mIcon->setPixmap( icon ); - mIcon->tqsetAlignment( TQt::AlignTop ); - mIcon->setFixedWidth( mIcon->tqsizeHint().width() ); + mIcon->setAlignment( TQt::AlignTop ); + mIcon->setFixedWidth( mIcon->sizeHint().width() ); TQVBox *nameBox = new TQVBox( box ); mMemberName = new TQLabel( nameBox ); mMemberName->setFont( boldFont ); mDescription = new TQLabel( nameBox ); - mtqStatus = new TQLabel( box ); + mStatus = 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 ) { - mtqStatus->setText( msg ); + mStatus->setText( msg ); } #include "groupitem.moc" diff --git a/kitchensync/src/groupitem.h b/kitchensync/src/groupitem.h index 524fa0369..338c733df 100644 --- a/kitchensync/src/groupitem.h +++ b/kitchensync/src/groupitem.h @@ -76,7 +76,7 @@ class GroupItem : public KWidgetListItem TQLabel *mIcon; TQLabel *mGroupName; - TQLabel *mtqStatus; + TQLabel *mStatus; TQLabel *mTime; KURLLabel *mSyncAction; KURLLabel *mConfigureAction; @@ -106,7 +106,7 @@ class MemberItem : public TQWidget TQLabel *mIcon; TQLabel *mMemberName; TQLabel *mDescription; - TQLabel *mtqStatus; + TQLabel *mStatus; }; #endif diff --git a/kitchensync/src/groupview.cpp b/kitchensync/src/groupview.cpp index 8e1adf87e..42d5b9690 100644 --- a/kitchensync/src/groupview.cpp +++ b/kitchensync/src/groupview.cpp @@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include "aboutpage.h" #include "groupitem.h" diff --git a/kitchensync/src/htmldiffalgodisplay.cpp b/kitchensync/src/htmldiffalgodisplay.cpp index 9558eaecd..1b4c2fe1b 100644 --- a/kitchensync/src/htmldiffalgodisplay.cpp +++ b/kitchensync/src/htmldiffalgodisplay.cpp @@ -45,13 +45,13 @@ void HTMLDiffAlgoDisplay::begin() mText.append( "" ); mText.append( TQString( "" ) - .tqarg( KGlobalSettings::textColor().name() ) - .tqarg( KGlobalSettings::baseColor().name() ) ); + .arg( KGlobalSettings::textColor().name() ) + .arg( KGlobalSettings::baseColor().name() ) ); mText.append( "
" ); mText.append( TQString( "" ) - .tqarg( mLeftTitle ) - .tqarg( mRightTitle ) ); + .arg( mLeftTitle ) + .arg( mRightTitle ) ); } void HTMLDiffAlgoDisplay::end() @@ -76,22 +76,22 @@ void HTMLDiffAlgoDisplay::setRightSourceTitle( const TQString &title ) void HTMLDiffAlgoDisplay::additionalLeftField( const TQString &id, const TQString &value ) { mText.append( TQString( "" ) - .tqarg( id ) - .tqarg( textToHTML( value ) ) ); + .arg( id ) + .arg( textToHTML( value ) ) ); } void HTMLDiffAlgoDisplay::additionalRightField( const TQString &id, const TQString &value ) { mText.append( TQString( "" ) - .tqarg( id ) - .tqarg( textToHTML( value ) ) ); + .arg( id ) + .arg( textToHTML( value ) ) ); } void HTMLDiffAlgoDisplay::conflictField( const TQString &id, const TQString &leftValue, const TQString &rightValue ) { mText.append( TQString( "" ) - .tqarg( id ) - .tqarg( textToHTML( leftValue ) ) - .tqarg( textToHTML( rightValue ) ) ); + .arg( id ) + .arg( textToHTML( leftValue ) ) + .arg( textToHTML( rightValue ) ) ); } diff --git a/kitchensync/src/mainwidget.cpp b/kitchensync/src/mainwidget.cpp index 8dbef8cab..70451ee4f 100644 --- a/kitchensync/src/mainwidget.cpp +++ b/kitchensync/src/mainwidget.cpp @@ -38,7 +38,7 @@ #include #include -#include +#include MainWidget::MainWidget( KXMLGUIClient *guiClient, TQWidget *widget, const char *name ) : TQWidget( widget, name ), mGUIClient( guiClient ) @@ -141,7 +141,7 @@ void MainWidget::deleteGroup() SyncProcess *syncProcess = mGroupView->selectedSyncProcess(); if ( syncProcess ) { int result = KMessageBox::warningContinueCancel( this, - i18n("Delete synchronization group '%1'?").tqarg( syncProcess->group().name() ) ); + i18n("Delete synchronization group '%1'?").arg( syncProcess->group().name() ) ); if ( result == KMessageBox::Continue ) { SyncProcessManager::self()->remove( syncProcess ); enableActions(); diff --git a/kitchensync/src/memberconfig.cpp b/kitchensync/src/memberconfig.cpp index c2216546c..f7fed0141 100644 --- a/kitchensync/src/memberconfig.cpp +++ b/kitchensync/src/memberconfig.cpp @@ -27,7 +27,7 @@ #include #include -#include +#include #include MemberConfig::MemberConfig( TQWidget *parent, const QSync::Member &member ) @@ -51,7 +51,7 @@ void MemberConfig::loadData() if ( error ) { KMessageBox::error( this, i18n("Unable to read config from plugin '%1':\n%2") - .tqarg( mMember.pluginName() ).tqarg( error.message() ) ); + .arg( mMember.pluginName() ).arg( error.message() ) ); } else { TQString txt = TQString::fromUtf8( cfg.data(), cfg.size() ); mGui->load( txt ); @@ -65,7 +65,7 @@ void MemberConfig::saveData() TQString txt = mGui->save(); if ( txt.isEmpty() ) { - KMessageBox::sorry( this, i18n("Configuration of %1 is empty.").tqarg( mMember.pluginName() ) ); + KMessageBox::sorry( this, i18n("Configuration of %1 is empty.").arg( mMember.pluginName() ) ); } else { TQByteArray cfg = txt.utf8(); cfg.truncate(cfg.size() - 1); /* discard NUL terminator */ diff --git a/kitchensync/src/multiconflictdialog.cpp b/kitchensync/src/multiconflictdialog.cpp index e7c037610..2e630cace 100644 --- a/kitchensync/src/multiconflictdialog.cpp +++ b/kitchensync/src/multiconflictdialog.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include "memberinfo.h" @@ -37,10 +37,10 @@ class ChangeItem : public KWidgetListItem : KWidgetListItem( parent ), mChange( change ) { - TQGridLayout *tqlayout = new TQGridLayout( this, 2, 1, KDialog::marginHint(), KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( this, 2, 1, KDialog::marginHint(), KDialog::spacingHint() ); MemberInfo mi( change.member() ); - tqlayout->addWidget( new TQLabel( mi.name(), this ), 0, 0 ); + layout->addWidget( new TQLabel( mi.name(), this ), 0, 0 ); TQString type; switch ( change.changeType() ) { @@ -62,7 +62,7 @@ class ChangeItem : public KWidgetListItem break; } - tqlayout->addWidget( new TQLabel( type, this ), 1, 0 ); + layout->addWidget( new TQLabel( type, this ), 1, 0 ); } QSync::SyncChange change() const { return mChange; } @@ -118,24 +118,24 @@ void MultiConflictDialog::ignoreChange() void MultiConflictDialog::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( this, 3, 3, KDialog::marginHint(), KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( this, 3, 3, KDialog::marginHint(), KDialog::spacingHint() ); - tqlayout->addMultiCellWidget( new TQLabel( i18n( "A conflict has appeared, please solve it manually." ), this ), 0, 0, 0, 2 ); + layout->addMultiCellWidget( new TQLabel( i18n( "A conflict has appeared, please solve it manually." ), this ), 0, 0, 0, 2 ); mWidgetList = new KWidgetList( this ); - tqlayout->addMultiCellWidget( mWidgetList, 1, 1, 0, 2 ); + layout->addMultiCellWidget( mWidgetList, 1, 1, 0, 2 ); TQPushButton *button = new TQPushButton( i18n( "Use Selected Item" ), this ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( useSelectedChange() ) ); - tqlayout->addWidget( button, 2, 0 ); + layout->addWidget( button, 2, 0 ); button = new TQPushButton( i18n( "Duplicate Items" ), this ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( duplicateChange() ) ); - tqlayout->addWidget( button, 2, 1 ); + layout->addWidget( button, 2, 1 ); button = new TQPushButton( i18n( "Ignore Conflict" ), this ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( ignoreChange() ) ); - tqlayout->addWidget( button, 2, 2 ); + layout->addWidget( button, 2, 2 ); } #include "multiconflictdialog.moc" diff --git a/kitchensync/src/part.cpp b/kitchensync/src/part.cpp index f66eece63..086a8ef73 100644 --- a/kitchensync/src/part.cpp +++ b/kitchensync/src/part.cpp @@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include #include diff --git a/kitchensync/src/pluginpicker.cpp b/kitchensync/src/pluginpicker.cpp index d8d6c46d5..64b025b62 100644 --- a/kitchensync/src/pluginpicker.cpp +++ b/kitchensync/src/pluginpicker.cpp @@ -32,17 +32,17 @@ #include #include -#include +#include PluginItem::PluginItem( KWidgetList *list, const QSync::Plugin &plugin ) : KWidgetListItem( list ), mPlugin( plugin ) { TQString iconName = MemberInfo::pluginIconName( mPlugin.name() ); - TQGridLayout *tqlayout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( this, 2, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQLabel *icon = new TQLabel( this ); icon->setPixmap( KGlobal::iconLoader()->loadIcon( iconName, KIcon::Desktop ) ); - icon->setFixedSize( icon->tqsizeHint() ); + icon->setFixedSize( icon->sizeHint() ); TQLabel *name = new TQLabel( plugin.longName(), this ); TQLabel *description = new TQLabel( plugin.description(), this ); @@ -51,19 +51,19 @@ PluginItem::PluginItem( KWidgetList *list, const QSync::Plugin &plugin ) font.setBold( true ); name->setFont( font ); - tqlayout->addWidget( icon, 0, 0 ); - tqlayout->addWidget( name, 0, 1 ); - tqlayout->addWidget( description, 1, 1 ); + layout->addWidget( icon, 0, 0 ); + layout->addWidget( name, 0, 1 ); + layout->addWidget( description, 1, 1 ); } PluginPicker::PluginPicker( TQWidget *parent ) : TQWidget( parent ) { - TQBoxLayout *tqlayout = new TQVBoxLayout( this ); + TQBoxLayout *layout = new TQVBoxLayout( this ); mPluginList = new KWidgetList( this ); - tqlayout->addWidget( mPluginList ); + layout->addWidget( mPluginList ); connect( mPluginList, TQT_SIGNAL( doubleClicked( KWidgetListItem* ) ), TQT_SIGNAL( selected() ) ); diff --git a/kitchensync/src/singleconflictdialog.cpp b/kitchensync/src/singleconflictdialog.cpp index f9228e174..3c11cd058 100644 --- a/kitchensync/src/singleconflictdialog.cpp +++ b/kitchensync/src/singleconflictdialog.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include "addresseediffalgo.h" @@ -96,28 +96,28 @@ void SingleConflictDialog::ignoreChange() void SingleConflictDialog::initGUI() { - TQGridLayout *tqlayout = new TQGridLayout( this, 3, 4, KDialog::marginHint(), KDialog::spacingHint() ); + TQGridLayout *layout = new TQGridLayout( this, 3, 4, KDialog::marginHint(), KDialog::spacingHint() ); - tqlayout->addMultiCellWidget( new TQLabel( i18n( "A conflict has appeared, please solve it manually." ), this ), 0, 0, 0, 3 ); + layout->addMultiCellWidget( new TQLabel( i18n( "A conflict has appeared, please solve it manually." ), this ), 0, 0, 0, 3 ); mDiffAlgoDisplay = new KSync::HTMLDiffAlgoDisplay( this ); - tqlayout->addMultiCellWidget( mDiffAlgoDisplay, 1, 1, 0, 3 ); + layout->addMultiCellWidget( mDiffAlgoDisplay, 1, 1, 0, 3 ); TQPushButton *button = new TQPushButton( i18n( "Use Item" ), this ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( useFirstChange() ) ); - tqlayout->addWidget( button, 2, 0 ); + layout->addWidget( button, 2, 0 ); button = new TQPushButton( i18n( "Duplicate Items" ), this ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( duplicateChange() ) ); - tqlayout->addWidget( button, 2, 1 ); + layout->addWidget( button, 2, 1 ); button = new TQPushButton( i18n( "Ignore Conflict" ), this ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( ignoreChange() ) ); - tqlayout->addWidget( button, 2, 2 ); + layout->addWidget( button, 2, 2 ); button = new TQPushButton( i18n( "Use Item" ), this ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( useSecondChange() ) ); - tqlayout->addWidget( button, 2, 3 ); + layout->addWidget( button, 2, 3 ); } #include "singleconflictdialog.moc" diff --git a/kitchensync/src/syncprocess.cpp b/kitchensync/src/syncprocess.cpp index 672c789c3..60310b803 100644 --- a/kitchensync/src/syncprocess.cpp +++ b/kitchensync/src/syncprocess.cpp @@ -48,12 +48,12 @@ SyncProcess::~SyncProcess() mEngine = 0; } -TQString SyncProcess::grouptqStatus() const +TQString SyncProcess::groupStatus() const { return i18n( "Ready" ); } -TQString SyncProcess::membertqStatus( const QSync::Member& ) const +TQString SyncProcess::memberStatus( const QSync::Member& ) const { return i18n( "Ready" ); } diff --git a/kitchensync/src/syncprocess.h b/kitchensync/src/syncprocess.h index 31cbd50c7..0bf9b803e 100644 --- a/kitchensync/src/syncprocess.h +++ b/kitchensync/src/syncprocess.h @@ -41,8 +41,8 @@ class SyncProcess : public TQObject QSync::Group group() const { return mGroup; } QSync::Engine* engine() const { return mEngine; } - TQString grouptqStatus() const; - TQString membertqStatus( const QSync::Member &member ) const; + TQString groupStatus() const; + TQString memberStatus( const QSync::Member &member ) const; QSync::Result addMember( const QSync::Plugin &plugin ); diff --git a/kitchensync/src/syncprocessmanager.cpp b/kitchensync/src/syncprocessmanager.cpp index 67fe3095c..fda111efd 100644 --- a/kitchensync/src/syncprocessmanager.cpp +++ b/kitchensync/src/syncprocessmanager.cpp @@ -47,7 +47,7 @@ SyncProcessManager::SyncProcessManager() QSync::Result result = mEnvironment->initialize(); if ( result.isError() ) { KMessageBox::error( 0, i18n("Error initializing OpenSync.\n%1") - .tqarg( result.message() ) ); + .arg( result.message() ) ); } else { init( mEnvironment ); } -- cgit v1.2.1
%1 %2
%1:%2
%1:%2
%1:%2%3