From 1c93fca14d9ce37499bcfdf994c660186a0b6f17 Mon Sep 17 00:00:00 2001
From: tpearson
Date: Thu, 14 Apr 2011 20:16:30 +0000
Subject: Enable kdepim compilation under Qt4 This will likely break Qt3
compilation temporarily, which is an unintended side effect. A third and
final kdepim commit will repair Qt3 compilation shortly.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227946 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
---
kmail/CMakeLists.txt | 1 +
kmail/accountdialog.cpp | 24 +--
kmail/accountmanager.cpp | 6 +-
kmail/accountwizard.cpp | 10 +-
kmail/actionscheduler.cpp | 24 +--
kmail/antispamconfig.cpp | 2 +-
kmail/antispamwizard.cpp | 10 +-
kmail/archivefolderdialog.cpp | 4 +-
kmail/backupjob.cpp | 26 +--
kmail/bodypartformatterfactory.cpp | 12 +-
kmail/cachedimapjob.cpp | 22 +--
kmail/callback.cpp | 12 +-
kmail/chiasmuskeyselector.cpp | 2 +-
kmail/compactionjob.cpp | 10 +-
kmail/configuredialog.cpp | 38 ++---
kmail/configuredialog_p.cpp | 12 +-
kmail/csshelper.cpp | 2 +-
kmail/customtemplates.cpp | 2 +-
kmail/distributionlistdialog.cpp | 2 +-
kmail/expirejob.cpp | 18 +-
kmail/favoritefolderview.cpp | 6 +-
kmail/filehtmlwriter.cpp | 2 +-
kmail/filterlogdlg.cpp | 2 +-
kmail/folderdiaacltab.cpp | 8 +-
kmail/folderdiaquotatab.cpp | 6 +-
kmail/folderpropertiesdialog.ui | 12 +-
kmail/folderrequester.cpp | 4 +-
kmail/foldershortcutdialog.cpp | 2 +-
kmail/folderstorage.cpp | 4 +-
kmail/foldertreebase.cpp | 6 +-
kmail/folderutil.cpp | 2 +-
kmail/folderviewtooltip.h | 10 +-
kmail/headeritem.cpp | 2 +-
kmail/headerlistquicksearch.cpp | 6 +-
kmail/headerstyle.cpp | 114 ++++++-------
kmail/identitydialog.cpp | 16 +-
kmail/identitylistview.cpp | 2 +-
kmail/imapaccountbase.cpp | 28 ++--
kmail/imapjob.cpp | 8 +-
kmail/importjob.cpp | 20 +--
kmail/index.cpp | 8 +-
kmail/interfaces/bodypart.h | 3 +-
kmail/keyresolver.cpp | 34 ++--
kmail/kmaccount.cpp | 8 +-
kmail/kmacctimap.cpp | 20 +--
kmail/kmacctlocal.cpp | 16 +-
kmail/kmacctmaildir.cpp | 12 +-
kmail/kmail.kcfg | 8 +-
kmail/kmail_part.cpp | 4 +-
kmail/kmailicalifaceimpl.cpp | 26 +--
kmail/kmcommands.cpp | 46 ++---
kmail/kmcomposewin.cpp | 274 +++++++++++++++---------------
kmail/kmedit.cpp | 22 +--
kmail/kmfilter.cpp | 10 +-
kmail/kmfilteraction.cpp | 50 +++---
kmail/kmfilterdlg.cpp | 14 +-
kmail/kmfolder.cpp | 6 +-
kmail/kmfoldercachedimap.cpp | 46 ++---
kmail/kmfoldercombobox.cpp | 4 +-
kmail/kmfolderdir.cpp | 6 +-
kmail/kmfolderimap.cpp | 12 +-
kmail/kmfolderindex.cpp | 4 +-
kmail/kmfoldermaildir.cpp | 20 +--
kmail/kmfoldermbox.cpp | 18 +-
kmail/kmfoldermgr.cpp | 8 +-
kmail/kmfoldersearch.cpp | 4 +-
kmail/kmfoldertree.cpp | 24 +--
kmail/kmheaders.cpp | 44 ++---
kmail/kmkernel.cpp | 44 ++---
kmail/kmlineeditspell.cpp | 2 +-
kmail/kmmainwidget.cpp | 306 +++++++++++++++++-----------------
kmail/kmmainwin.cpp | 12 +-
kmail/kmmessage.cpp | 56 +++----
kmail/kmmimeparttree.cpp | 8 +-
kmail/kmmsgbase.cpp | 30 ++--
kmail/kmmsginfo.cpp | 2 +-
kmail/kmmsgpartdlg.cpp | 12 +-
kmail/kmpopfiltercnfrmdlg.cpp | 4 +-
kmail/kmreadermainwin.cpp | 30 ++--
kmail/kmreaderwin.cpp | 200 +++++++++++-----------
kmail/kmsearchpatternedit.cpp | 8 +-
kmail/kmsender.cpp | 30 ++--
kmail/kmservertest.cpp | 2 +-
kmail/kmstartup.cpp | 16 +-
kmail/kmsystemtray.cpp | 6 +-
kmail/kmtransport.cpp | 10 +-
kmail/listjob.cpp | 4 +-
kmail/mailinglistpropertiesdialog.cpp | 20 +--
kmail/mailserviceimpl.h | 5 +-
kmail/managesievescriptsdialog.cpp | 2 +-
kmail/messagecomposer.cpp | 8 +-
kmail/networkaccount.cpp | 2 +-
kmail/newfolderdialog.cpp | 6 +-
kmail/objecttreeparser.cpp | 114 ++++++-------
kmail/partNode.cpp | 8 +-
kmail/partnodebodypart.cpp | 4 +-
kmail/popaccount.cpp | 26 +--
kmail/quotajobs.h | 4 +-
kmail/recipientseditor.cpp | 4 +-
kmail/recipientspicker.cpp | 4 +-
kmail/regexplineedit.cpp | 2 +-
kmail/rulewidgethandlermanager.cpp | 54 +++---
kmail/searchjob.cpp | 4 +-
kmail/searchwindow.cpp | 88 +++++-----
kmail/sievedebugdialog.cpp | 8 +-
kmail/snippetwidget.cpp | 40 ++---
kmail/subscriptiondialog.cpp | 2 +-
kmail/templateparser.cpp | 26 +--
kmail/templatesconfiguration.cpp | 12 +-
kmail/templatesinsertcommand.cpp | 4 +-
kmail/urlhandlermanager.cpp | 10 +-
kmail/util.cpp | 10 +-
kmail/util.h | 2 +-
kmail/vacation.cpp | 6 +-
kmail/vacationdialog.cpp | 2 +-
kmail/xfaceconfigurator.cpp | 2 +-
116 files changed, 1256 insertions(+), 1255 deletions(-)
(limited to 'kmail')
diff --git a/kmail/CMakeLists.txt b/kmail/CMakeLists.txt
index 0dddc98c2..c2edd2380 100644
--- a/kmail/CMakeLists.txt
+++ b/kmail/CMakeLists.txt
@@ -227,6 +227,7 @@ tde_add_kpart( libkmailpart AUTOMOC
tde_add_kpart( libkmail_bodypartformatter_application_octetstream
SOURCES app_octetstream.cpp
+ LINK ${TQT_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)
diff --git a/kmail/accountdialog.cpp b/kmail/accountdialog.cpp
index 4dab221bc..2782bfa93 100644
--- a/kmail/accountdialog.cpp
+++ b/kmail/accountdialog.cpp
@@ -181,7 +181,7 @@ void
ProcmailRCParser::processLocalLock(const TQString &s)
{
TQString val;
- int colonPos = s.findRev(':');
+ int colonPos = s.tqfindRev(':');
if (colonPos > 0) { // we don't care about the leading one
val = s.mid(colonPos + 1).stripWhiteSpace();
@@ -357,7 +357,7 @@ void AccountDialog::makeLocalAccountPage()
topLayout->addWidget( choose, 3, 2 );
TQButtonGroup *group = new TQButtonGroup(i18n("Locking Method"), page );
- group->setColumnLayout(0, TQt::Horizontal);
+ group->setColumnLayout(0, Qt::Horizontal);
group->tqlayout()->setSpacing( 0 );
group->tqlayout()->setMargin( 0 );
TQGridLayout *groupLayout = new TQGridLayout( group->tqlayout() );
@@ -618,7 +618,7 @@ void AccountDialog::makePopAccountPage()
label = new TQLabel( i18n("&Port:"), page1 );
grid->addWidget( label, 4, 0 );
mPop.portEdit = new KLineEdit( page1 );
- mPop.portEdit->setValidator( new TQIntValidator(this) );
+ mPop.portEdit->setValidator( new TQIntValidator(TQT_TQOBJECT(this)) );
label->setBuddy( mPop.portEdit );
grid->addWidget( mPop.portEdit, 4, 1 );
@@ -778,7 +778,7 @@ void AccountDialog::makePopAccountPage()
vlay->addSpacing( KDialog::spacingHint() );
- mPop.encryptionGroup = new TQButtonGroup( 1, TQt::Horizontal,
+ mPop.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Encryption"), page2 );
mPop.encryptionNone =
new TQRadioButton( i18n("&None"), mPop.encryptionGroup );
@@ -792,7 +792,7 @@ void AccountDialog::makePopAccountPage()
TQT_SLOT(slotPopEncryptionChanged(int)));
vlay->addWidget( mPop.encryptionGroup );
- mPop.authGroup = new TQButtonGroup( 1, TQt::Horizontal,
+ mPop.authGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Authentication Method"), page2 );
mPop.authUser = new TQRadioButton( i18n("Clear te&xt") , mPop.authGroup,
"auth clear text" );
@@ -891,7 +891,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
label = new TQLabel( i18n("&Port:"), page1 );
grid->addWidget( label, row, 0 );
mImap.portEdit = new KLineEdit( page1 );
- mImap.portEdit->setValidator( new TQIntValidator(this) );
+ mImap.portEdit->setValidator( new TQIntValidator(TQT_TQOBJECT(this)) );
label->setBuddy( mImap.portEdit );
grid->addWidget( mImap.portEdit, row, 1 );
@@ -1093,7 +1093,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
vlay->addSpacing( KDialog::spacingHint() );
- mImap.encryptionGroup = new TQButtonGroup( 1, TQt::Horizontal,
+ mImap.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Encryption"), page2 );
mImap.encryptionNone =
new TQRadioButton( i18n("&None"), mImap.encryptionGroup );
@@ -1107,7 +1107,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
TQT_SLOT(slotImapEncryptionChanged(int)));
vlay->addWidget( mImap.encryptionGroup );
- mImap.authGroup = new TQButtonGroup( 1, TQt::Horizontal,
+ mImap.authGroup = new TQButtonGroup( 1, Qt::Horizontal,
i18n("Authentication Method"), page2 );
mImap.authUser = new TQRadioButton( i18n("Clear te&xt"), mImap.authGroup );
mImap.authLogin = new TQRadioButton( i18n("Please translate this "
@@ -1191,7 +1191,7 @@ void AccountDialog::setupSettings()
mPop.loginEdit->setText( ap.login() );
mPop.passwordEdit->setText( ap.passwd());
mPop.hostEdit->setText( ap.host() );
- mPop.portEdit->setText( TQString("%1").arg( ap.port() ) );
+ mPop.portEdit->setText( TQString("%1").tqarg( ap.port() ) );
mPop.usePipeliningCheck->setChecked( ap.usePipelining() );
mPop.storePasswordCheck->setChecked( ap.storePasswd() );
mPop.leaveOnServerCheck->setChecked( ap.leaveOnServer() );
@@ -1256,7 +1256,7 @@ void AccountDialog::setupSettings()
mImap.loginEdit->setText( ai.login() );
mImap.passwordEdit->setText( ai.passwd());
mImap.hostEdit->setText( ai.host() );
- mImap.portEdit->setText( TQString("%1").arg( ai.port() ) );
+ mImap.portEdit->setText( TQString("%1").tqarg( ai.port() ) );
mImap.autoExpungeCheck->setChecked( ai.autoExpunge() );
mImap.hiddenFoldersCheck->setChecked( ai.hiddenFolders() );
mImap.subscribedFoldersCheck->setChecked( ai.onlySubscribedFolders() );
@@ -1309,7 +1309,7 @@ void AccountDialog::setupSettings()
mImap.loginEdit->setText( ai.login() );
mImap.passwordEdit->setText( ai.passwd());
mImap.hostEdit->setText( ai.host() );
- mImap.portEdit->setText( TQString("%1").arg( ai.port() ) );
+ mImap.portEdit->setText( TQString("%1").tqarg( ai.port() ) );
#if 0
mImap.resourceCheck->setChecked( ai.resource() );
#endif
@@ -2293,7 +2293,7 @@ NamespaceEditDialog::NamespaceEditDialog( TQWidget *tqparent,
} else {
ns = i18n("Shared");
}
- setCaption( i18n("Edit Namespace '%1'").arg(ns) );
+ setCaption( i18n("Edit Namespace '%1'").tqarg(ns) );
TQGrid* grid = new TQGrid( 2, page );
mBg = new TQButtonGroup( 0 );
diff --git a/kmail/accountmanager.cpp b/kmail/accountmanager.cpp
index d62280fd1..40d95b296 100644
--- a/kmail/accountmanager.cpp
+++ b/kmail/accountmanager.cpp
@@ -100,7 +100,7 @@ void AccountManager::readConfig(void)
acctType = "pop";
acctName = config->readEntry("Name");
id = config->readUnsignedNumEntry("Id", 0);
- if (acctName.isEmpty()) acctName = i18n("Account %1").arg(i);
+ if (acctName.isEmpty()) acctName = i18n("Account %1").tqarg(i);
acct = create(acctType, acctName, id);
if (!acct) continue;
add(acct);
@@ -183,7 +183,7 @@ void AccountManager::processNextCheck( bool _newMail )
TQString tmp = i18n("Account %1 has no mailbox defined:\n"
"mail checking aborted;\n"
"check your account settings.")
- .arg(curAccount->name());
+ .tqarg(curAccount->name());
KMessageBox::information(0,tmp);
emit checkedMail( false, mInteractive, mTotalNewInFolder );
mTotalNewMailsArrived = 0;
@@ -223,7 +223,7 @@ void AccountManager::processNextCheck( bool _newMail )
this, TQT_SLOT( processNextCheck( bool ) ) );
KPIM::BroadcastqStatus::instance()->seStatusMsg(
- i18n("Checking account %1 for new mail").arg(curAccount->name()));
+ i18n("Checking account %1 for new mail").tqarg(curAccount->name()));
kdDebug(5006) << "processing next mail check for " << curAccount->name() << endl;
diff --git a/kmail/accountwizard.cpp b/kmail/accountwizard.cpp
index e4e8b8334..0ae07d6c1 100644
--- a/kmail/accountwizard.cpp
+++ b/kmail/accountwizard.cpp
@@ -516,7 +516,7 @@ void AccountWizard::checkPopCapabilities( const TQString &server, int port )
connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList&, const TQStringList& ) ),
this, TQT_SLOT( popCapabilities( const TQStringList&, const TQStringList& ) ) );
- mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).arg( server ) );
+ mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).tqarg( server ) );
}
void AccountWizard::checkImapCapabilities( const TQString &server, int port )
@@ -527,7 +527,7 @@ void AccountWizard::checkImapCapabilities( const TQString &server, int port )
connect( mServerTest, TQT_SIGNAL( capabilities( const TQStringList&, const TQStringList& ) ),
this, TQT_SLOT( imapCapabilities( const TQStringList&, const TQStringList& ) ) );
- mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).arg( server ) );
+ mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).tqarg( server ) );
}
void AccountWizard::checkSmtpCapabilities( const TQString &server, int port )
@@ -540,7 +540,7 @@ void AccountWizard::checkSmtpCapabilities( const TQString &server, int port )
this, TQT_SLOT( smtpCapabilities( const TQStringList&, const TQStringList&,
const TQString&, const TQString&, const TQString& ) ) );
- mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).arg( server ) );
+ mAuthInfoLabel = createInfoLabel( i18n( "Check for supported security capabilities of %1..." ).tqarg( server ) );
}
void AccountWizard::popCapabilities( const TQStringList &capaNormalList,
@@ -652,7 +652,7 @@ void AccountWizard::smtpCapabilities( const TQStringList &capaNormal,
if ( authNone.isEmpty() && authSSL.isEmpty() && authTLS.isEmpty() ) {
// slave doesn't seem to support "* AUTH METHODS" metadata (or server can't do AUTH)
authBitsNone = authMethodsFromStringList( capaNormal );
- if ( capaNormal.findIndex( "STARTTLS" ) != -1 )
+ if ( capaNormal.tqfindIndex( "STARTTLS" ) != -1 )
authBitsTLS = authBitsNone;
else
authBitsTLS = 0;
@@ -664,7 +664,7 @@ void AccountWizard::smtpCapabilities( const TQStringList &capaNormal,
}
uint authBits = 0;
- if ( capaNormal.findIndex( "STARTTLS" ) != -1 ) {
+ if ( capaNormal.tqfindIndex( "STARTTLS" ) != -1 ) {
mTransportInfo->encryption = "TLS";
authBits = authBitsTLS;
} else if ( !capaSSL.isEmpty() ) {
diff --git a/kmail/actionscheduler.cpp b/kmail/actionscheduler.cpp
index 77685ee4b..3d1c86880 100644
--- a/kmail/actionscheduler.cpp
+++ b/kmail/actionscheduler.cpp
@@ -625,7 +625,7 @@ void ActionScheduler::actionMessage(KMFilterAction::ReturnCode res)
if (msg) {
if ( FilterLog::instance()->isLogging() ) {
TQString logText( i18n( "Applying filter action: %1" )
- .arg( mFilterAction->displayString() ) );
+ .tqarg( mFilterAction->displayString() ) );
FilterLog::instance()->add( logText, FilterLog::appliedAction );
}
KMFilterAction *action = mFilterAction;
@@ -786,19 +786,19 @@ TQString ActionScheduler::debug()
TQValueList::iterator it;
int i = 1;
for ( it = schedulerList->begin(); it != schedulerList->end(); ++it ) {
- res.append( TQString( "ActionScheduler #%1.\n" ).arg( i ) );
- if ((*it)->mAccount && kmkernel->tqfind( (*it)->mAccountId )) {
+ res.append( TQString( "ActionScheduler #%1.\n" ).tqarg( i ) );
+ if ((*it)->mAccount && kmkernel->find( (*it)->mAccountId )) {
res.append( TQString( "Account %1, Name %2.\n" )
- .arg( (*it)->mAccountId )
- .arg( kmkernel->acctMgr()->tqfind( (*it)->mAccountId )->name() ) );
+ .tqarg( (*it)->mAccountId )
+ .tqarg( kmkernel->acctMgr()->tqfind( (*it)->mAccountId )->name() ) );
}
- res.append( TQString( "mExecuting %1, " ).arg( (*it)->mExecuting ? "true" : "false" ) );
- res.append( TQString( "mExecutingLock %1, " ).arg( (*it)->mExecutingLock ? "true" : "false" ) );
- res.append( TQString( "mFetchExecuting %1.\n" ).arg( (*it)->mFetchExecuting ? "true" : "false" ) );
- res.append( TQString( "mOriginalSerNum %1.\n" ).arg( (*it)->mOriginalSerNum ) );
- res.append( TQString( "mMessageIt %1.\n" ).arg( ((*it)->mMessageIt != 0) ? *(*it)->mMessageIt : 0 ) );
- res.append( TQString( "mSerNums count %1, " ).arg( (*it)->mSerNums.count() ) );
- res.append( TQString( "mFetchSerNums count %1.\n" ).arg( (*it)->mFetchSerNums.count() ) );
+ res.append( TQString( "mExecuting %1, " ).tqarg( (*it)->mExecuting ? "true" : "false" ) );
+ res.append( TQString( "mExecutingLock %1, " ).tqarg( (*it)->mExecutingLock ? "true" : "false" ) );
+ res.append( TQString( "mFetchExecuting %1.\n" ).tqarg( (*it)->mFetchExecuting ? "true" : "false" ) );
+ res.append( TQString( "mOriginalSerNum %1.\n" ).tqarg( (*it)->mOriginalSerNum ) );
+ res.append( TQString( "mMessageIt %1.\n" ).tqarg( ((*it)->mMessageIt != 0) ? *(*it)->mMessageIt : 0 ) );
+ res.append( TQString( "mSerNums count %1, " ).tqarg( (*it)->mSerNums.count() ) );
+ res.append( TQString( "mFetchSerNums count %1.\n" ).tqarg( (*it)->mFetchSerNums.count() ) );
res.append( TQString( "mResult " ) );
if ((*it)->mResult == ResultOk)
res.append( TQString( "ResultOk.\n" ) );
diff --git a/kmail/antispamconfig.cpp b/kmail/antispamconfig.cpp
index 384752c24..19198e11a 100644
--- a/kmail/antispamconfig.cpp
+++ b/kmail/antispamconfig.cpp
@@ -59,7 +59,7 @@ void AntiSpamConfig::readConfig()
KConfigGroup general( &config, "General" );
unsigned int totalTools = general.readUnsignedNumEntry( "tools", 0 );
for ( unsigned int i = 1; i <= totalTools; ++i ) {
- KConfigGroup tool( &config, TQString("Spamtool #%1").arg( i ) );
+ KConfigGroup tool( &config, TQString("Spamtool #%1").tqarg( i ) );
if ( tool.hasKey( "ScoreHeader" ) ) {
TQString name = tool.readEntry( "ScoreName" );
TQCString header = tool.readEntry( "ScoreHeader" ).latin1();
diff --git a/kmail/antispamwizard.cpp b/kmail/antispamwizard.cpp
index af32ec486..1e5e912b8 100644
--- a/kmail/antispamwizard.cpp
+++ b/kmail/antispamwizard.cpp
@@ -495,7 +495,7 @@ void AntiSpamWizard::checkToolAvailability()
bool found = false;
for ( TQValueListIterator it = mToolList.begin();
it != mToolList.end(); ++it ) {
- TQString text( i18n("Scanning for %1...").arg( (*it).getId() ) );
+ TQString text( i18n("Scanning for %1...").tqarg( (*it).getId() ) );
mInfoPage->setScanProgressText( text );
if ( (*it).isSpamTool() && (*it).isServerBased() ) {
// check the configured account for pattern in
@@ -517,7 +517,7 @@ void AntiSpamWizard::checkToolAvailability()
}
else {
// check the availability of the application
- KApplication::kApplication()->processEvents( 200 );
+ KApplication::kApplication()->tqprocessEvents( 200 );
if ( !checkForProgram( (*it).getExecutable() ) ) {
mInfoPage->addAvailableTool( (*it).getVisibleName() );
found = true;
@@ -702,7 +702,7 @@ void AntiSpamWizard::ConfigReader::readAndMergeConfig()
int registeredTools = general.readNumEntry( "tools", 0 );
for (int i = 1; i <= registeredTools; i++)
{
- KConfigGroup toolConfig( mConfig, groupName.arg( i ) );
+ KConfigGroup toolConfig( mConfig, groupName.tqarg( i ) );
if( !toolConfig.readBoolEntry( "HeadersOnly", false ) )
mToolList.append( readToolConfig( toolConfig ) );
}
@@ -714,7 +714,7 @@ void AntiSpamWizard::ConfigReader::readAndMergeConfig()
int user_registeredTools = user_general.readNumEntry( "tools", 0 );
for (int i = 1; i <= user_registeredTools; i++)
{
- KConfigGroup toolConfig( mConfig, groupName.arg( i ) );
+ KConfigGroup toolConfig( mConfig, groupName.tqarg( i ) );
if( !toolConfig.readBoolEntry( "HeadersOnly", false ) )
mergeToolConfig( readToolConfig( toolConfig ) );
}
@@ -925,7 +925,7 @@ void ASWizInfoPage::addAvailableTool( const TQString &visibleName )
bool ASWizInfoPage::isProgramSelected( const TQString &visibleName )
{
TQString listName = visibleName;
- return mToolsList->isSelected( mToolsList->findItem( listName ) );
+ return mToolsList->isSelected( mToolsList->tqfindItem( listName ) );
}
diff --git a/kmail/archivefolderdialog.cpp b/kmail/archivefolderdialog.cpp
index ca10bd449..b1422f476 100644
--- a/kmail/archivefolderdialog.cpp
+++ b/kmail/archivefolderdialog.cpp
@@ -46,7 +46,7 @@ static TQString standardArchivePath( const TQString &folderName )
}
return currentPath +
i18n( "Start of the filename for a mail archive file" , "Archive" ) + "_" + folderName +
- "_" + TQDate::tqcurrentDate().toString( TQt::ISODate ) + ".tar.bz2";
+ "_" + TQDate::tqcurrentDate().toString( Qt::ISODate ) + ".tar.bz2";
}
ArchiveFolderDialog::ArchiveFolderDialog( TQWidget *tqparent )
@@ -194,7 +194,7 @@ void ArchiveFolderDialog::slotFixFileExtension()
// First, try to find the extension of the file name and remove it
for( int i = 0; i < numExtensions; i++ ) {
- int index = fileName.lower().findRev( sortedExtensions[i] );
+ int index = fileName.lower().tqfindRev( sortedExtensions[i] );
if ( index != -1 ) {
fileName = fileName.left( fileName.length() - TQString( sortedExtensions[i] ).length() );
break;
diff --git a/kmail/backupjob.cpp b/kmail/backupjob.cpp
index 3953f3bcf..e3a2ac0dd 100644
--- a/kmail/backupjob.cpp
+++ b/kmail/backupjob.cpp
@@ -148,7 +148,7 @@ void BackupJob::abort( const TQString &errorMessage )
// The progressmanager will delete it
}
- TQString text = i18n( "Failed to archive the folder '%1'." ).arg( mRootFolder->name() );
+ TQString text = i18n( "Failed to archive the folder '%1'." ).tqarg( mRootFolder->name() );
text += "\n" + errorMessage;
KMessageBox::sorry( mParentWidget, text, i18n( "Archiving failed." ) );
deleteLater();
@@ -172,12 +172,12 @@ void BackupJob::finish()
TQFileInfo archiveFileInfo( mMailArchivePath.path() );
TQString text = i18n( "Archiving folder '%1' successfully completed. "
"The archive was written to the file '%2'." )
- .arg( mRootFolder->name() ).arg( mMailArchivePath.path() );
+ .tqarg( mRootFolder->name() ).tqarg( mMailArchivePath.path() );
text += "\n" + i18n( "1 message of size %1 was archived.",
"%n messages with the total size of %1 were archived.", mArchivedMessages )
- .arg( KIO::convertSize( mArchivedSize ) );
+ .tqarg( KIO::convertSize( mArchivedSize ) );
text += "\n" + i18n( "The archive file has a size of %1." )
- .arg( KIO::convertSize( archiveFileInfo.size() ) );
+ .tqarg( KIO::convertSize( archiveFileInfo.size() ) );
KMessageBox::information( mParentWidget, text, i18n( "Archiving finished." ) );
if ( mDeleteFoldersAfterCompletion ) {
@@ -213,7 +213,7 @@ void BackupJob::archiveNextMessage()
KMMsgDict::instance()->getLocation( serNum, &folder, &mMessageIndex );
if ( mMessageIndex == -1 ) {
kdWarning(5006) << "Failed to get message location for sernum " << serNum << endl;
- abort( i18n( "Unable to retrieve a message for folder '%1'." ).arg( mCurrentFolder->name() ) );
+ abort( i18n( "Unable to retrieve a message for folder '%1'." ).tqarg( mCurrentFolder->name() ) );
return;
}
@@ -223,7 +223,7 @@ void BackupJob::archiveNextMessage()
KMMessage *message = mCurrentFolder->getMsg( mMessageIndex );
if ( !message ) {
kdWarning(5006) << "Failed to retrieve message with index " << mMessageIndex << endl;
- abort( i18n( "Unable to retrieve a message for folder '%1'." ).arg( mCurrentFolder->name() ) );
+ abort( i18n( "Unable to retrieve a message for folder '%1'." ).tqarg( mCurrentFolder->name() ) );
return;
}
@@ -249,7 +249,7 @@ void BackupJob::archiveNextMessage()
kdWarning(5006) << "Message with subject " << mCurrentMessage->subject()
<< " is neither complete nor has a tqparent!" << endl;
abort( i18n( "Internal error while trying to retrieve a message from folder '%1'." )
- .arg( mCurrentFolder->name() ) );
+ .tqarg( mCurrentFolder->name() ) );
}
mProgressItem->setProgress( ( mProgressItem->progress() + 5 ) );
@@ -318,7 +318,7 @@ void BackupJob::processCurrentMessage()
if ( !mArchive->writeFile( fileName, user, group, messageSize, permissions, accessTime,
modificationTime, creationTime, messageString ) ) {
- abort( i18n( "Failed to write a message into the archive folder '%1'." ).arg( mCurrentFolder->name() ) );
+ abort( i18n( "Failed to write a message into the archive folder '%1'." ).tqarg( mCurrentFolder->name() ) );
return;
}
@@ -357,7 +357,7 @@ void BackupJob::folderJobFinished( KMail::FolderJob *job )
if ( job->error() ) {
if ( mCurrentFolder )
- abort( i18n( "Downloading a message in folder '%1' failed." ).arg( mCurrentFolder->name() ) );
+ abort( i18n( "Downloading a message in folder '%1' failed." ).tqarg( mCurrentFolder->name() ) );
else
abort( i18n( "Downloading a message in the current folder failed." ) );
}
@@ -388,9 +388,9 @@ void BackupJob::archiveNextFolder()
mCurrentFolder = mPendingFolders.take( 0 );
kdDebug(5006) << "===> Archiving next folder: " << mCurrentFolder->name() << endl;
- mProgressItem->setqStatus( i18n( "Archiving folder %1" ).arg( mCurrentFolder->name() ) );
+ mProgressItem->setqStatus( i18n( "Archiving folder %1" ).tqarg( mCurrentFolder->name() ) );
if ( mCurrentFolder->open( "BackupJob" ) != 0 ) {
- abort( i18n( "Unable to open folder '%1'.").arg( mCurrentFolder->name() ) );
+ abort( i18n( "Unable to open folder '%1'.").tqarg( mCurrentFolder->name() ) );
return;
}
mCurrentFolderOpen = true;
@@ -411,7 +411,7 @@ void BackupJob::archiveNextFolder()
success = false;
if ( !success ) {
abort( i18n( "Unable to create folder structure for folder '%1' within archive file." )
- .arg( mCurrentFolder->name() ) );
+ .tqarg( mCurrentFolder->name() ) );
return;
}
@@ -423,7 +423,7 @@ void BackupJob::archiveNextFolder()
<< " at index " << i << "!" << endl;
// TODO: handle error in a nicer way. this is _very_ bad
abort( i18n( "Unable to backup messages in folder '%1', the index file is corrupted." )
- .arg( mCurrentFolder->name() ) );
+ .tqarg( mCurrentFolder->name() ) );
return;
}
else
diff --git a/kmail/bodypartformatterfactory.cpp b/kmail/bodypartformatterfactory.cpp
index f11690d52..5f6feea7e 100644
--- a/kmail/bodypartformatterfactory.cpp
+++ b/kmail/bodypartformatterfactory.cpp
@@ -83,7 +83,7 @@ static void insertBodyPartFormatter( const char * type, const char * subtype,
if ( !type || !*type || !subtype || !*subtype || !formatter || !all )
return;
- TypeRegistry::iterator type_it = all->tqfind( type );
+ TypeRegistry::iterator type_it = all->find( type );
if ( type_it == all->end() ) {
kdDebug( 5006 ) << "BodyPartFormatterFactory: instantiating new Subtype Registry for \""
<< type << "\"" << endl;
@@ -92,7 +92,7 @@ static void insertBodyPartFormatter( const char * type, const char * subtype,
}
SubtypeRegistry & subtype_reg = type_it->second;
- SubtypeRegistry::iterator subtype_it = subtype_reg.tqfind( subtype );
+ SubtypeRegistry::iterator subtype_it = subtype_reg.find( subtype );
if ( subtype_it != subtype_reg.end() ) {
kdDebug( 5006 ) << "BodyPartFormatterFactory: overwriting previously registered formatter for \""
<< type << "/" << subtype << "\"" << endl;
@@ -159,9 +159,9 @@ const KMail::Interface::BodyPartFormatter * KMail::BodyPartFormatterFactory::cre
if ( all->empty() )
return 0;
- TypeRegistry::const_iterator type_it = all->tqfind( type );
+ TypeRegistry::const_iterator type_it = all->find( type );
if ( type_it == all->end() )
- type_it = all->tqfind( "*" );
+ type_it = all->find( "*" );
if ( type_it == all->end() )
return 0;
@@ -169,9 +169,9 @@ const KMail::Interface::BodyPartFormatter * KMail::BodyPartFormatterFactory::cre
if ( subtype_reg.empty() )
return 0;
- SubtypeRegistry::const_iterator subtype_it = subtype_reg.tqfind( subtype );
+ SubtypeRegistry::const_iterator subtype_it = subtype_reg.find( subtype );
if ( subtype_it == subtype_reg.end() )
- subtype_it = subtype_reg.tqfind( "*" );
+ subtype_it = subtype_reg.find( "*" );
if ( subtype_it == subtype_reg.end() )
return 0;
diff --git a/kmail/cachedimapjob.cpp b/kmail/cachedimapjob.cpp
index 2b9ab2a8e..ca95344c7 100644
--- a/kmail/cachedimapjob.cpp
+++ b/kmail/cachedimapjob.cpp
@@ -234,7 +234,7 @@ void CachedImapJob::slotDeleteNextMessages( KIO::Job* job )
KURL url = mAccount->getUrl();
url.setPath( mFolder->imapPath() +
- TQString::tqfromLatin1(";UID=%1").arg(uids) );
+ TQString::tqfromLatin1(";UID=%1").tqarg(uids) );
KIO::SimpleJob *simpleJob = KIO::file_delete( url, false );
KIO::Scheduler::assignJobToSlave( mAccount->slave(), simpleJob );
@@ -341,7 +341,7 @@ void CachedImapJob::slotGetNextMessage(KIO::Job * job)
if( mfd.flags > 0 )
KMFolderImap::flagsTotqStatus(mMsg, mfd.flags, true, GlobalSettings::allowLocalFlags() ? mFolder->permanentFlags() : INT_MAX);
KURL url = mAccount->getUrl();
- url.setPath(mFolder->imapPath() + TQString(";UID=%1;SECTION=BODY.PEEK[]").arg(mfd.uid));
+ url.setPath(mFolder->imapPath() + TQString(";UID=%1;SECTION=BODY.PEEK[]").tqarg(mfd.uid));
ImapAccountBase::jobData jd( url.url(), mFolder->folder() );
jd.cancellable = true;
@@ -408,10 +408,10 @@ void CachedImapJob::slotPutNextMessage()
unsigned int i = 0;
for( char *ch = cstr.data(); *ch; ch++ ) {
if ( *ch == '\n' ) {
- mData.at(i) = '\r';
+ mData.tqat(i) = '\r';
i++;
}
- mData.at(i) = *ch; i++;
+ mData.tqat(i) = *ch; i++;
}
jd.data = mData;
jd.msgList.append( mMsg );
@@ -539,7 +539,7 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
if ( job->error() && !silentUpload ) {
TQString myError = "" + i18n("Error while uploading folder")
- + "
" + i18n("Could not make the folder %1 on the server.").arg((*it).items[0])
+ + "
" + i18n("Could not make the folder %1 on the server.").tqarg((*it).items[0])
+ "
" + i18n("This could be because you do not have permission to do this, or because the folder is already present on the server; the error message from the server communication is here:") + "
";
mAccount->handleJobError( job, myError );
}
@@ -597,8 +597,8 @@ void CachedImapJob::slotAddNextSubfolder( KIO::Job * job )
TQDataStream stream( packedArgs, IO_WriteOnly );
const TQString command = TQString( "X-CREATE-SPECIAL" );
- const TQString argument = TQString( "%1 %2" ).arg( Scalix::Utils::contentsTypeToScalixId( folder->contentsType() ) )
- .arg( path );
+ const TQString argument = TQString( "%1 %2" ).tqarg( Scalix::Utils::contentsTypeToScalixId( folder->contentsType() ) )
+ .tqarg( path );
stream << (int) 'X' << 'N' << command << argument;
@@ -626,7 +626,7 @@ void CachedImapJob::slotDeleteNextFolder( KIO::Job *job )
mAccount->removeDeletedFolder( (*it).path );
if( job->error() ) {
- mAccount->handleJobError( job, i18n( "Error while deleting folder %1 on the server: " ).arg( (*it).path ) + '\n' );
+ mAccount->handleJobError( job, i18n( "Error while deleting folder %1 on the server: " ).tqarg( (*it).path ) + '\n' );
delete this;
return;
}
@@ -679,7 +679,7 @@ void CachedImapJob::slotCheckUidValidityResult(KIO::Job * job)
if( job->error() ) {
mErrorCode = job->error();
- mAccount->handleJobError( job, i18n( "Error while reading folder %1 on the server: " ).arg( (*it).tqparent->label() ) + '\n' );
+ mAccount->handleJobError( job, i18n( "Error while reading folder %1 on the server: " ).tqarg( (*it).tqparent->label() ) + '\n' );
delete this;
return;
}
@@ -813,7 +813,7 @@ void CachedImapJob::slotSubscribtionChange1Failed( const TQString &errorMessage
"from the folder list after the next sync since it is unsubscribed on the server.\n"
"You can try to manually subscribe to the folder yourself.\n\n"
"%2" )
- .arg( mFolder->label() ).arg( errorMessage ) );
+ .tqarg( mFolder->label() ).tqarg( errorMessage ) );
delete this;
}
@@ -854,7 +854,7 @@ void CachedImapJob::slotRenameFolderResult( KIO::Job *job )
if( job->error() ) {
revertLabelChange();
- const TQString errorMessage = i18n( "Error while trying to rename folder %1" ).arg( mFolder->label() );
+ const TQString errorMessage = i18n( "Error while trying to rename folder %1" ).tqarg( mFolder->label() );
mAccount->handleJobError( job, errorMessage );
delete this;
} else {
diff --git a/kmail/callback.cpp b/kmail/callback.cpp
index 037f80900..923ff6be3 100644
--- a/kmail/callback.cpp
+++ b/kmail/callback.cpp
@@ -64,7 +64,7 @@ TQString Callback::askForTransport( bool nullIdentity ) const
return transports.first();
const TQString defaultTransport = GlobalSettings::self()->defaultTransport();
- const int defaultIndex = TQMAX( 0, transports.findIndex( defaultTransport ) );
+ const int defaultIndex = TQMAX( 0, transports.tqfindIndex( defaultTransport ) );
TQString text;
if ( nullIdentity )
@@ -94,13 +94,13 @@ bool Callback::mailICal( const TQString& to, const TQString &iCal,
msg->setSubject( subject );
if ( GlobalSettings::self()->exchangeCompatibleInvitations() ) {
if ( status == TQString("cancel") )
- msg->setSubject( i18n( "Declined: %1" ).arg(subject).tqreplace("Answer: ","") );
+ msg->setSubject( i18n( "Declined: %1" ).tqarg(subject).tqreplace("Answer: ","") );
else if ( status == TQString("tentative") )
- msg->setSubject( i18n( "Tentative: %1" ).arg(subject).tqreplace("Answer: ","") );
+ msg->setSubject( i18n( "Tentative: %1" ).tqarg(subject).tqreplace("Answer: ","") );
else if ( status == TQString("accepted") )
- msg->setSubject( i18n( "Accepted: %1" ).arg(subject).tqreplace("Answer: ","") );
+ msg->setSubject( i18n( "Accepted: %1" ).tqarg(subject).tqreplace("Answer: ","") );
else if ( status == TQString("delegated") )
- msg->setSubject( i18n( "Delegated: %1" ).arg(subject).tqreplace("Answer: ","") );
+ msg->setSubject( i18n( "Delegated: %1" ).tqarg(subject).tqreplace("Answer: ","") );
}
msg->setTo( to );
msg->setFrom( receiver() );
@@ -227,7 +227,7 @@ TQString Callback::receiver() const
// select default identity by default
const TQString defaultAddr = kmkernel->identityManager()->defaultIdentity().primaryEmailAddress();
- const int defaultIndex = TQMAX( 0, addrs.findIndex( defaultAddr ) );
+ const int defaultIndex = TQMAX( 0, addrs.tqfindIndex( defaultAddr ) );
mReceiver =
KInputDialog::getItem( i18n( "Select Address" ),
diff --git a/kmail/chiasmuskeyselector.cpp b/kmail/chiasmuskeyselector.cpp
index d88c3164b..9fde31bb9 100644
--- a/kmail/chiasmuskeyselector.cpp
+++ b/kmail/chiasmuskeyselector.cpp
@@ -21,7 +21,7 @@ ChiasmusKeySelector::ChiasmusKeySelector( TQWidget* tqparent, const TQString& ca
mListBox = new KListBox( page );
mListBox->insertStringList( keys );
- const int current = keys.findIndex( currentKey );
+ const int current = keys.tqfindIndex( currentKey );
mListBox->setSelected( TQMAX( 0, current ), true );
mListBox->ensureCurrentVisible();
tqlayout->addWidget( mListBox, 1 );
diff --git a/kmail/compactionjob.cpp b/kmail/compactionjob.cpp
index 3d3dd6acc..5de762e96 100644
--- a/kmail/compactionjob.cpp
+++ b/kmail/compactionjob.cpp
@@ -96,7 +96,7 @@ int MboxCompactionJob::executeNow( bool silent )
if (!storage->compactable()) {
kdDebug(5006) << storage->location() << " compaction skipped." << endl;
if ( !mSilent ) {
- TQString str = i18n( "For safety reasons, compaction has been disabled for %1" ).arg( mbox->label() );
+ TQString str = i18n( "For safety reasons, compaction has been disabled for %1" ).tqarg( mbox->label() );
BroadcastqStatus::instance()->seStatusMsg( str );
}
return 0;
@@ -173,11 +173,11 @@ void MboxCompactionJob::done( int rc )
mbox->close("mboxcompact", true);
mbox->setAutoCreateIndex( autoCreate );
mbox->setNeedsCompacting( false ); // We are clean now
- str = i18n( "Folder \"%1\" successfully compacted" ).arg( mSrcFolder->label() );
+ str = i18n( "Folder \"%1\" successfully compacted" ).tqarg( mSrcFolder->label() );
kdDebug(5006) << str << endl;
} else {
mbox->close("mboxcompact");
- str = i18n( "Error occurred while compacting \"%1\". Compaction aborted." ).arg( mSrcFolder->label() );
+ str = i18n( "Error occurred while compacting \"%1\". Compaction aborted." ).tqarg( mSrcFolder->label() );
kdDebug(5006) << "Error occurred while compacting " << mbox->location() << endl;
kdDebug(5006) << "Compaction aborted." << endl;
TQFile::remove( mTempName );
@@ -256,9 +256,9 @@ void MaildirCompactionJob::done( int rc )
mCancellable = false;
TQString str;
if ( !rc ) {
- str = i18n( "Folder \"%1\" successfully compacted" ).arg( mSrcFolder->label() );
+ str = i18n( "Folder \"%1\" successfully compacted" ).tqarg( mSrcFolder->label() );
} else {
- str = i18n( "Error occurred while compacting \"%1\". Compaction aborted." ).arg( mSrcFolder->label() );
+ str = i18n( "Error occurred while compacting \"%1\". Compaction aborted." ).tqarg( mSrcFolder->label() );
}
mErrorCode = rc;
storage->setNeedsCompacting( false );
diff --git a/kmail/configuredialog.cpp b/kmail/configuredialog.cpp
index bc415a888..993c6c74f 100644
--- a/kmail/configuredialog.cpp
+++ b/kmail/configuredialog.cpp
@@ -451,7 +451,7 @@ void IdentityPage::slotRemoveIdentity()
if ( !item ) return;
TQString msg = i18n("Do you really want to remove the identity named "
- "%1?").arg( item->identity().identityName() );
+ "%1?").tqarg( item->identity().identityName() );
if( KMessageBox::warningContinueCancel( this, msg, i18n("Remove Identity"),
KGuiItem(i18n("&Remove"),"editdelete") ) == KMessageBox::Continue )
if ( im->removeIdentity( item->identity().identityName() ) ) {
@@ -649,7 +649,7 @@ AccountsPageSendingTab::AccountsPageSendingTab( TQWidget * tqparent, const char
btn_vlay->addStretch( 1 ); // spacer
// "Common options" groupbox:
- group = new TQGroupBox( 0, TQt::Vertical,
+ group = new TQGroupBox( 0, Qt::Vertical,
i18n("Common Options"), this );
vlay->addWidget(group);
@@ -742,7 +742,7 @@ static inline TQString uniqueName( const TQStringList & list,
while ( list.tqfind( result ) != list.end() ) {
result = i18n("%1: name; %2: number appended to it to make it unique "
"among a list of names", "%1 %2")
- .arg( name ).arg( suffix );
+ .tqarg( name ).tqarg( suffix );
suffix++;
}
return result;
@@ -830,7 +830,7 @@ void AccountsPage::SendingTab::slotAddTransport()
"Configure->Accounts->Sending listview, \"type\" "
"column, first row, to indicate that this is the "
"default transport", "%1 (Default)")
- .arg( transportInfo->type );
+ .tqarg( transportInfo->type );
GlobalSettings::self()->setDefaultTransport( transportInfo->name );
}
(void) new TQListViewItem( mTransportList, lastItem, transportInfo->name,
@@ -1364,7 +1364,7 @@ void AccountsPage::ReceivingTab::slotRemoveSelectedAccount() {
if ( !acct ) {
// ### FIXME: see above
KMessageBox::sorry( this, i18n("Unable to locate account %1.")
- .arg(listItem->text(0)) );
+ .tqarg(listItem->text(0)) );
return;
}
@@ -1444,7 +1444,7 @@ void AccountsPage::ReceivingTab::save() {
kmkernel->acctMgr()->writeConfig( true );
if ( (*it) && !kmkernel->acctMgr()->remove(*it) )
KMessageBox::sorry( this, i18n("Unable to locate account %1.")
- .arg( (*it)->name() ) );
+ .tqarg( (*it)->name() ) );
}
mAccountsToDelete.clear();
@@ -1667,7 +1667,7 @@ void AppearancePage::FontsTab::installProfile( KConfig * profile ) {
needChange = true;
mFont[i] = fonts.readFontEntry( fontNames[i].configName );
kdDebug(5006) << "got font \"" << fontNames[i].configName
- << "\" thusly: \"" << mFont[i].toString() << "\"" << endl;
+ << "\" thusly: \"" << TQString(mFont[i].toString()) << "\"" << endl;
}
if ( needChange && mFontLocationCombo->currentItem() > 0 )
mFontChooser->setFont( mFont[ mFontLocationCombo->currentItem() ],
@@ -1793,9 +1793,9 @@ void AppearancePage::ColorsTab::doLoadOther() {
mCloseToQuotaThreshold->setValue( GlobalSettings::closeToQuotaThreshold() );
static const TQColor defaultColor[ numColorNames ] = {
- kapp->palette().active().base(), // bg
+ kapp->tqpalette().active().base(), // bg
KGlobalSettings::alternateBackgroundColor(), // alt bg
- kapp->palette().active().text(), // fg
+ kapp->tqpalette().active().text(), // fg
TQColor( 0x00, 0x80, 0x00 ), // quoted l1
TQColor( 0x00, 0x70, 0x00 ), // quoted l2
TQColor( 0x00, 0x60, 0x00 ), // quoted l3
@@ -2058,7 +2058,7 @@ AppearancePageHeadersTab::AppearancePageHeadersTab( TQWidget * tqparent, const c
for ( int i = 0 ; i < numDateDisplayConfig ; i++ ) {
TQString buttonLabel = i18n(dateDisplayConfig[i].displayName);
if ( buttonLabel.tqcontains("%1") )
- buttonLabel = buttonLabel.arg( DateFormatter::formatCurrentDate( dateDisplayConfig[i].dateDisplay ) );
+ buttonLabel = buttonLabel.tqarg( DateFormatter::formatCurrentDate( dateDisplayConfig[i].dateDisplay ) );
radio = new TQRadioButton( buttonLabel, mDateDisplay );
mDateDisplay->insert( radio, i );
if ( dateDisplayConfig[i].dateDisplay == DateFormatter::Custom ) {
@@ -3304,7 +3304,7 @@ void ComposerPage::CharsetTab::slotVerifyCharset( TQString & charset ) {
if ( charset.lower() == TQString::tqfromLatin1("locale") ) {
charset = TQString::tqfromLatin1("%1 (locale)")
- .arg( TQCString( kmkernel->networkCodec()->mimeName() ).lower() );
+ .tqarg( TQString( kmkernel->networkCodec()->mimeName() ).lower() );
return;
}
@@ -3328,7 +3328,7 @@ void ComposerPage::CharsetTab::doLoadOther() {
if ( (*it) == TQString::tqfromLatin1("locale") ) {
TQCString cset = kmkernel->networkCodec()->mimeName();
KPIM::kAsciiToLower( cset.data() );
- (*it) = TQString("%1 (locale)").arg( cset );
+ (*it) = TQString("%1 (locale)").tqarg( TQString(cset) );
}
mCharsetListEditor->setStringList( charsets );
@@ -3376,7 +3376,7 @@ ComposerPageHeadersTab::ComposerPageHeadersTab( TQWidget * tqparent, const char
mMessageIdSuffixEdit = new KLineEdit( this );
// only ASCII letters, digits, plus, minus and dots are allowed
mMessageIdSuffixValidator =
- new TQRegExpValidator( TQRegExp( "[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*" ), this );
+ new TQRegExpValidator( TQRegExp( "[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*" ), TQT_TQOBJECT(this) );
mMessageIdSuffixEdit->setValidator( mMessageIdSuffixValidator );
label = new TQLabel( mMessageIdSuffixEdit,
i18n("Custom message-&id suffix:"), this );
@@ -3815,7 +3815,7 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( TQWidget * tqparent, const char
"exploits. More about "
"HTML mails... More "
"about external references...")
- .arg(htmlWhatsThis).arg(externalWhatsThis),
+ .tqarg(htmlWhatsThis).tqarg(externalWhatsThis),
group );
vlay->addWidget( group );
@@ -3890,7 +3890,7 @@ SecurityPageGeneralTab::SecurityPageGeneralTab( TQWidget * tqparent, const char
label = new KActiveLabel( i18n("WARNING: Unconditionally returning "
"confirmations undermines your privacy. "
"More...")
- .arg(receiptWhatsThis),
+ .tqarg(receiptWhatsThis),
group );
vlay->addWidget( group );
@@ -4358,7 +4358,7 @@ void SecurityPage::SMimeTab::doLoadOther() {
TQString systemProxy = TQString::fromLocal8Bit( getenv( "http_proxy" ) );
if ( systemProxy.isEmpty() )
systemProxy = i18n( "no proxy" );
- mWidget->systemHTTPProxy->setText( i18n( "(Current system setting: %1)" ).arg( systemProxy ) );
+ mWidget->systemHTTPProxy->setText( i18n( "(Current system setting: %1)" ).tqarg( systemProxy ) );
bool honor = e.mHonorHTTPProxy && e.mHonorHTTPProxy->boolValue();
mWidget->honorHTTPProxyRB->setChecked( honor );
mWidget->useCustomHTTPProxyRB->setChecked( !honor );
@@ -4482,11 +4482,11 @@ Kleo::CryptoConfigEntry* SMIMECryptoConfigEntries::configEntry( const char* comp
{
Kleo::CryptoConfigEntry* entry = mConfig->entry( componentName, groupName, entryName );
if ( !entry ) {
- kdWarning(5006) << TQString( "Backend error: gpgconf doesn't seem to know the entry for %1/%2/%3" ).arg( componentName, groupName, entryName ) << endl;
+ kdWarning(5006) << TQString( "Backend error: gpgconf doesn't seem to know the entry for %1/%2/%3" ).tqarg( componentName, groupName, entryName ) << endl;
return 0;
}
if( entry->argType() != argType || entry->isList() != isList ) {
- kdWarning(5006) << TQString( "Backend error: gpgconf has wrong type for %1/%2/%3: %4 %5" ).arg( componentName, groupName, entryName ).arg( entry->argType() ).arg( entry->isList() ) << endl;
+ kdWarning(5006) << TQString( "Backend error: gpgconf has wrong type for %1/%2/%3: %4 %5" ).tqarg( componentName, groupName, entryName ).tqarg( entry->argType() ).tqarg( entry->isList() ) << endl;
return 0;
}
return entry;
@@ -5135,7 +5135,7 @@ void MiscPage::GroupwareTab::save() {
// Inbox folder of the selected account
KMAccount* acct = mAccountCombo->currentAccount();
if ( acct ) {
- folderId = TQString( ".%1.directory/INBOX" ).arg( acct->id() );
+ folderId = TQString( ".%1.directory/INBOX" ).tqarg( acct->id() );
GlobalSettings::self()->setTheIMAPResourceAccount( acct->id() );
}
}
diff --git a/kmail/configuredialog_p.cpp b/kmail/configuredialog_p.cpp
index ff473f668..098e90870 100644
--- a/kmail/configuredialog_p.cpp
+++ b/kmail/configuredialog_p.cpp
@@ -225,7 +225,7 @@ NewLanguageDialog::NewLanguageDialog( LanguageItemList & suppressedLangs,
if ( suppressedAcronyms.tqfind( acronym ) == suppressedAcronyms.end() ) {
// not found:
TQString displayname = TQString::tqfromLatin1("%1 (%2)")
- .arg( name ).arg( acronym );
+ .tqarg( name ).tqarg( acronym );
TQPixmap flag( locate("locale", acronym + flagPng ) );
mComboBox->insertItem( flag, displayname );
}
@@ -239,7 +239,7 @@ NewLanguageDialog::NewLanguageDialog( LanguageItemList & suppressedLangs,
TQString NewLanguageDialog::language() const
{
TQString s = mComboBox->currentText();
- int i = s.findRev( '(' );
+ int i = s.tqfindRev( '(' );
return s.mid( i + 1, s.length() - i - 2 );
}
@@ -255,21 +255,21 @@ int LanguageComboBox::insertLanguage( const TQString & language )
KSimpleConfig entry( locate("locale", language + entryDesktop) );
entry.setGroup( "KCM Locale" );
TQString name = entry.readEntry( "Name" );
- TQString output = TQString::tqfromLatin1("%1 (%2)").arg( name ).arg( language );
+ TQString output = TQString::tqfromLatin1("%1 (%2)").tqarg( name ).tqarg( language );
insertItem( TQPixmap( locate("locale", language + flagPng ) ), output );
- return listBox()->index( listBox()->findItem(output) );
+ return listBox()->index( listBox()->tqfindItem(output) );
}
TQString LanguageComboBox::language() const
{
TQString s = currentText();
- int i = s.findRev( '(' );
+ int i = s.tqfindRev( '(' );
return s.mid( i + 1, s.length() - i - 2 );
}
void LanguageComboBox::setLanguage( const TQString & language )
{
- TQString tqparenthizedLanguage = TQString::tqfromLatin1("(%1)").arg( language );
+ TQString tqparenthizedLanguage = TQString::tqfromLatin1("(%1)").tqarg( language );
for (int i = 0; i < count(); i++)
// ### FIXME: use .endWith():
if ( text(i).tqfind( tqparenthizedLanguage ) >= 0 ) {
diff --git a/kmail/csshelper.cpp b/kmail/csshelper.cpp
index 3fe2fd78b..86166dbc2 100644
--- a/kmail/csshelper.cpp
+++ b/kmail/csshelper.cpp
@@ -77,7 +77,7 @@ namespace KMail {
TQFont defaultFont = mBodyFont;
defaultFont.setItalic( true );
for ( int i = 0 ; i < 3 ; ++i ) {
- const TQString key = TQString( "quote%1-font" ).arg( i+1 );
+ const TQString key = TQString( "quote%1-font" ).tqarg( i+1 );
mQuoteFont[i] = fonts.readFontEntry( key, &defaultFont );
}
}
diff --git a/kmail/customtemplates.cpp b/kmail/customtemplates.cpp
index ef3668df4..4f1684907 100644
--- a/kmail/customtemplates.cpp
+++ b/kmail/customtemplates.cpp
@@ -117,7 +117,7 @@ CustomTemplates::CustomTemplates( TQWidget *tqparent, const char *name )
"Universal which can be used for all kind of operations. "
"You cannot bind keyboard shortcut to Universal templates.
"
"" );
- mHelp->setText( i18n( "How does this work?" ).arg( help ) );
+ mHelp->setText( i18n( "How does this work?" ).tqarg( help ) );
const TQString toToolTip = i18n( "Additional recipients of the message when forwarding" );
const TQString ccToolTip = i18n( "Additional recipients who get a copy of the message when forwarding" );
diff --git a/kmail/distributionlistdialog.cpp b/kmail/distributionlistdialog.cpp
index 62b4fcee4..6ee1492a2 100644
--- a/kmail/distributionlistdialog.cpp
+++ b/kmail/distributionlistdialog.cpp
@@ -196,7 +196,7 @@ void DistributionListDialog::slotUser1()
#endif
KMessageBox::information( this,
i18n( "Distribution list with the given name %1 "
- "already exists. Please select a different name." ).arg( name ) );
+ "already exists. Please select a different name." ).tqarg( name ) );
return;
}
diff --git a/kmail/expirejob.cpp b/kmail/expirejob.cpp
index 6d634d8f8..30ab9cd7d 100644
--- a/kmail/expirejob.cpp
+++ b/kmail/expirejob.cpp
@@ -162,7 +162,7 @@ void ExpireJob::done()
moving = true;
str = i18n( "Removing 1 old message from folder %1...",
"Removing %n old messages from folder %1...", count )
- .arg( mSrcFolder->label() );
+ .tqarg( mSrcFolder->label() );
} else {
// Expire by moving
mMoveToFolder =
@@ -170,7 +170,7 @@ void ExpireJob::done()
if ( !mMoveToFolder ) {
str = i18n( "Cannot expire messages from folder %1: destination "
"folder %2 not found" )
- .arg( mSrcFolder->label(), mSrcFolder->expireToFolderId() );
+ .tqarg( mSrcFolder->label(), mSrcFolder->expireToFolderId() );
kdWarning(5006) << str << endl;
} else {
kdDebug(5006) << "ExpireJob: finished expiring in folder "
@@ -185,7 +185,7 @@ void ExpireJob::done()
str = i18n( "Moving 1 old message from folder %1 to folder %2...",
"Moving %n old messages from folder %1 to folder %2...",
count )
- .arg( mSrcFolder->label(), mMoveToFolder->label() );
+ .tqarg( mSrcFolder->label(), mMoveToFolder->label() );
}
}
}
@@ -213,34 +213,34 @@ void ExpireJob::slotMessagesMoved( KMCommand *command )
msg = i18n( "Removed 1 old message from folder %1.",
"Removed %n old messages from folder %1.",
mRemovedMsgs.count() )
- .arg( mSrcFolder->label() );
+ .tqarg( mSrcFolder->label() );
}
else {
msg = i18n( "Moved 1 old message from folder %1 to folder %2.",
"Moved %n old messages from folder %1 to folder %2.",
mRemovedMsgs.count() )
- .arg( mSrcFolder->label(), mMoveToFolder->label() );
+ .tqarg( mSrcFolder->label(), mMoveToFolder->label() );
}
break;
case KMCommand::Failed:
if ( mSrcFolder->expireAction() == KMFolder::ExpireDelete ) {
msg = i18n( "Removing old messages from folder %1 failed." )
- .arg( mSrcFolder->label() );
+ .tqarg( mSrcFolder->label() );
}
else {
msg = i18n( "Moving old messages from folder %1 to folder %2 failed." )
- .arg( mSrcFolder->label(), mMoveToFolder->label() );
+ .tqarg( mSrcFolder->label(), mMoveToFolder->label() );
}
break;
case KMCommand::Canceled:
if ( mSrcFolder->expireAction() == KMFolder::ExpireDelete ) {
msg = i18n( "Removing old messages from folder %1 was canceled." )
- .arg( mSrcFolder->label() );
+ .tqarg( mSrcFolder->label() );
}
else {
msg = i18n( "Moving old messages from folder %1 to folder %2 was "
"canceled." )
- .arg( mSrcFolder->label(), mMoveToFolder->label() );
+ .tqarg( mSrcFolder->label(), mMoveToFolder->label() );
}
default: ;
}
diff --git a/kmail/favoritefolderview.cpp b/kmail/favoritefolderview.cpp
index 7176cdebb..5c5cfa66f 100644
--- a/kmail/favoritefolderview.cpp
+++ b/kmail/favoritefolderview.cpp
@@ -405,13 +405,13 @@ TQString FavoriteFolderView::prettyName(KMFolderTreeItem * fti)
if ( fti->protocol() == KFolderTreeItem::Local || fti->protocol() == KFolderTreeItem::NONE ) {
name = i18n( "Local Inbox" );
} else {
- name = i18n( "Inbox of %1" ).arg( accountFti->text( 0 ) );
+ name = i18n( "Inbox of %1" ).tqarg( accountFti->text( 0 ) );
}
} else {
if ( fti->protocol() != KFolderTreeItem::Local && fti->protocol() != KFolderTreeItem::NONE ) {
- name = i18n( "%1 on %2" ).arg( fti->text( 0 ) ).arg( accountFti->text( 0 ) );
+ name = i18n( "%1 on %2" ).tqarg( fti->text( 0 ) ).tqarg( accountFti->text( 0 ) );
} else {
- name = i18n( "%1 (local)" ).arg( fti->text( 0 ) );
+ name = i18n( "%1 (local)" ).tqarg( fti->text( 0 ) );
}
}
return name;
diff --git a/kmail/filehtmlwriter.cpp b/kmail/filehtmlwriter.cpp
index 479e6d3e2..c4f2d214e 100644
--- a/kmail/filehtmlwriter.cpp
+++ b/kmail/filehtmlwriter.cpp
@@ -96,7 +96,7 @@ namespace KMail {
if ( !mFile.open( IO_WriteOnly ) )
kdWarning( 5006 ) << "FileHtmlWriter: Cannot open file " << mFile.name() << endl;
else
- mStream.setDevice( &mFile );
+ mStream.setDevice( &TQT_TQIODEVICE_OBJECT(mFile) );
}
void FileHtmlWriter::embedPart( const TQCString & contentId, const TQString & url ) {
diff --git a/kmail/filterlogdlg.cpp b/kmail/filterlogdlg.cpp
index 441390fb5..c387b2e16 100644
--- a/kmail/filterlogdlg.cpp
+++ b/kmail/filterlogdlg.cpp
@@ -257,7 +257,7 @@ void FilterLogDialog::slotUser2()
KMessageBox::error( this,
i18n( "Could not write the file %1:\n"
"\"%2\" is the detailed error description." )
- .arg( fileName,
+ .tqarg( fileName,
TQString::fromLocal8Bit( strerror( errno ) ) ),
i18n( "KMail Error" ) );
}
diff --git a/kmail/folderdiaacltab.cpp b/kmail/folderdiaacltab.cpp
index 90903fdb1..c850cf2ec 100644
--- a/kmail/folderdiaacltab.cpp
+++ b/kmail/folderdiaacltab.cpp
@@ -244,7 +244,7 @@ static TQString permissionsToUserString( unsigned int permissions, const TQStrin
if ( internalRightsList.isEmpty() )
return i18n( "Custom Permissions" ); // not very helpful, but shouldn't happen
else
- return i18n( "Custom Permissions (%1)" ).arg( internalRightsList );
+ return i18n( "Custom Permissions (%1)" ).tqarg( internalRightsList );
}
void KMail::FolderDiaACLTab::ListViewItem::setPermissions( unsigned int permissions )
@@ -453,7 +453,7 @@ void KMail::FolderDiaACLTab::load()
KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder();
if ( folder && folder->storage() == mImapAccount->rootFolder() )
return; // nothing to be done for the (virtual) account folder
- mLabel->setText( i18n( "Connecting to server %1, please wait..." ).arg( mImapAccount->host() ) );
+ mLabel->setText( i18n( "Connecting to server %1, please wait..." ).tqarg( mImapAccount->host() ) );
ImapAccountBase::ConnectionState state = mImapAccount->makeConnection();
if ( state == ImapAccountBase::Error ) { // Cancelled by user, or slave can't start
slotConnectionResult( -1, TQString() );
@@ -471,7 +471,7 @@ void KMail::FolderDiaACLTab::slotConnectionResult( int errorCode, const TQString
this, TQT_SLOT( slotConnectionResult(int, const TQString&) ) );
if ( errorCode ) {
if ( errorCode == -1 ) // unspecified error
- mLabel->setText( i18n( "Error connecting to server %1" ).arg( mImapAccount->host() ) );
+ mLabel->setText( i18n( "Error connecting to server %1" ).tqarg( mImapAccount->host() ) );
else
// Connection error (error message box already shown by the account)
mLabel->setText( KIO::buildErrorString( errorCode, errorMsg ) );
@@ -521,7 +521,7 @@ void KMail::FolderDiaACLTab::slotReceivedACL( KMFolder* folder, KIO::Job* job, c
if ( job->error() == KIO::ERR_UNSUPPORTED_ACTION )
mLabel->setText( i18n( "This IMAP server does not have support for access control lists (ACL)" ) );
else
- mLabel->setText( i18n( "Error retrieving access control list (ACL) from server\n%1" ).arg( job->errorString() ) );
+ mLabel->setText( i18n( "Error retrieving access control list (ACL) from server\n%1" ).tqarg( job->errorString() ) );
return;
}
diff --git a/kmail/folderdiaquotatab.cpp b/kmail/folderdiaquotatab.cpp
index 4215ba723..ac93431f8 100644
--- a/kmail/folderdiaquotatab.cpp
+++ b/kmail/folderdiaquotatab.cpp
@@ -117,7 +117,7 @@ void KMail::FolderDiaQuotaTab::load()
KMFolder* folder = mDlg->folder() ? mDlg->folder() : mDlg->tqparentFolder();
if ( folder && folder->storage() == mImapAccount->rootFolder() )
return; // nothing to be done for the (virtual) account folder
- mLabel->setText( i18n( "Connecting to server %1, please wait..." ).arg( mImapAccount->host() ) );
+ mLabel->setText( i18n( "Connecting to server %1, please wait..." ).tqarg( mImapAccount->host() ) );
ImapAccountBase::ConnectionState state = mImapAccount->makeConnection();
if ( state == ImapAccountBase::Error ) { // Cancelled by user, or slave can't start
slotConnectionResult( -1, TQString() );
@@ -136,7 +136,7 @@ void KMail::FolderDiaQuotaTab::slotConnectionResult( int errorCode, const TQStri
this, TQT_SLOT( slotConnectionResult(int, const TQString&) ) );
if ( errorCode ) {
if ( errorCode == -1 ) // unspecified error
- mLabel->setText( i18n( "Error connecting to server %1" ).arg( mImapAccount->host() ) );
+ mLabel->setText( i18n( "Error connecting to server %1" ).tqarg( mImapAccount->host() ) );
else
// Connection error (error message box already shown by the account)
mLabel->setText( KIO::buildErrorString( errorCode, errorMsg ) );
@@ -162,7 +162,7 @@ void KMail::FolderDiaQuotaTab::slotReceivedQuotaInfo( KMFolder* folder,
if ( job->error() == KIO::ERR_UNSUPPORTED_ACTION )
mLabel->setText( i18n( "This account does not have support for quota information." ) );
else
- mLabel->setText( i18n( "Error retrieving quota information from server\n%1" ).arg( job->errorString() ) );
+ mLabel->setText( i18n( "Error retrieving quota information from server\n%1" ).tqarg( job->errorString() ) );
} else {
mQuotaInfo = info;
}
diff --git a/kmail/folderpropertiesdialog.ui b/kmail/folderpropertiesdialog.ui
index 984885c16..1966944a0 100644
--- a/kmail/folderpropertiesdialog.ui
+++ b/kmail/folderpropertiesdialog.ui
@@ -608,13 +608,13 @@
mNormalIconButton
- iconChanged(QString)
+ iconChanged(TQString)
KMFolderDialogUI
- slotChangeIcon(QString)
+ slotChangeIcon(TQString)
- qvaluelist.h
+ tqvaluelist.h
kmfolderdir.h
kmfolder.h
kdialog.h
@@ -622,16 +622,16 @@
class KMFolderDir;
- template <typename T> class QGuardedPtr;
+ template <typename T> class TQGuardedPtr;
class KMFolder;
KMFolder *mFolder;
- QValueList<QGuardedPtr<KMFolder> > mFolders;
+ TQValueList<TQGuardedPtr<KMFolder> > mFolders;
KMFolderDir *mFolderDIr;
- slotChangeIcon( QString )
+ slotChangeIcon( TQString )
diff --git a/kmail/folderrequester.cpp b/kmail/folderrequester.cpp
index 06374664f..b04022bbe 100644
--- a/kmail/folderrequester.cpp
+++ b/kmail/folderrequester.cpp
@@ -57,7 +57,7 @@ FolderRequester::FolderRequester( TQWidget *tqparent, KMFolderTree *tree )
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
TQSizePolicy::Fixed ) );
- setFocusPolicy( TQWidget::StrongFocus );
+ setFocusPolicy( Qt::StrongFocus );
}
//-----------------------------------------------------------------------------
@@ -104,7 +104,7 @@ void FolderRequester::setFolder( const TQString &idString )
setFolder( folder );
} else {
if ( !idString.isEmpty() ) {
- edit->setText( i18n( "Unknown folder '%1'" ).arg( idString ) );
+ edit->setText( i18n( "Unknown folder '%1'" ).tqarg( idString ) );
} else {
edit->setText( i18n( "Please select a folder" ) );
}
diff --git a/kmail/foldershortcutdialog.cpp b/kmail/foldershortcutdialog.cpp
index b4897afec..f9bbed20d 100644
--- a/kmail/foldershortcutdialog.cpp
+++ b/kmail/foldershortcutdialog.cpp
@@ -56,7 +56,7 @@ FolderShortcutDialog::FolderShortcutDialog( KMFolder *folder,
TQWidget *tqparent,
const char *name )
: KDialogBase( tqparent, name, true,
- i18n( "Shortcut for Folder %1" ).arg( folder->label() ),
+ i18n( "Shortcut for Folder %1" ).tqarg( folder->label() ),
KDialogBase::Ok | KDialogBase::Cancel ),
mFolder( folder ), mMainWidget( mainwidget )
{
diff --git a/kmail/folderstorage.cpp b/kmail/folderstorage.cpp
index e1a7f364e..72547d8d2 100644
--- a/kmail/folderstorage.cpp
+++ b/kmail/folderstorage.cpp
@@ -725,11 +725,11 @@ int FolderStorage::rename(const TQString& newName, KMFolderDir *newParent)
// if the folder is being moved then move its node and, if necessary, also
// the associated subfolder directory node to the new tqparent
if (newParent) {
- if (oldParent->findRef( folder() ) != -1)
+ if (oldParent->tqfindRef( folder() ) != -1)
oldParent->take();
newParent->inSort( folder() );
if ( child ) {
- if ( child->tqparent()->findRef( child ) != -1 )
+ if ( child->tqparent()->tqfindRef( child ) != -1 )
child->tqparent()->take();
newParent->inSort( child );
child->setParent( newParent );
diff --git a/kmail/foldertreebase.cpp b/kmail/foldertreebase.cpp
index 0397692aa..87084b7bb 100644
--- a/kmail/foldertreebase.cpp
+++ b/kmail/foldertreebase.cpp
@@ -108,9 +108,9 @@ void FolderTreeBase::readColorConfig()
KConfig* conf = KMKernel::config();
// Custom/System color support
KConfigGroupSaver saver(conf, "Reader");
- TQColor c1=TQColor(kapp->palette().active().text());
+ TQColor c1=TQColor(kapp->tqpalette().active().text());
TQColor c2=TQColor("blue");
- TQColor c4=TQColor(kapp->palette().active().base());
+ TQColor c4=TQColor(kapp->tqpalette().active().base());
TQColor c5=TQColor("red");
if (!conf->readBoolEntry("defaultColors",true)) {
@@ -235,7 +235,7 @@ void FolderTreeBase::handleMailListDrop(TQDropEvent * event, KMFolder *destinati
else
action = dndMode();
if ( action == DRAG_COPY || action == DRAG_MOVE ) {
- new MessageCopyHelper( serNums, destination, action == DRAG_MOVE, this );
+ new MessageCopyHelper( serNums, destination, action == DRAG_MOVE, TQT_TQOBJECT(this) );
}
}
}
diff --git a/kmail/folderutil.cpp b/kmail/folderutil.cpp
index e5a604b8b..e227113db 100644
--- a/kmail/folderutil.cpp
+++ b/kmail/folderutil.cpp
@@ -92,7 +92,7 @@ void KMail::FolderUtil::deleteFolder( KMFolder *folderToDelete, TQWidget *tqpare
KMessageBox::information(tqparent,
i18n("The folder you deleted was associated with the account "
"%1 which delivered mail into it. The folder the account "
- "delivers new mail into was reset to the main Inbox folder.").arg( (*it)->name()));
+ "delivers new mail into was reset to the main Inbox folder.").tqarg( (*it)->name()));
}
}
if (folderToDelete->folderType() == KMFolderTypeImap)
diff --git a/kmail/folderviewtooltip.h b/kmail/folderviewtooltip.h
index 5ffac8d4a..a60e60c6c 100644
--- a/kmail/folderviewtooltip.h
+++ b/kmail/folderviewtooltip.h
@@ -32,15 +32,15 @@ class FolderViewToolTip : public TQToolTip
item->updateCount();
TQString tipText = i18n("%1
Total: %2
Unread: %3
Size: %4" )
- .arg( item->folder()->prettyURL().tqreplace( " ", " " ) )
- .arg( item->totalCount() < 0 ? "-" : TQString::number( item->totalCount() ) )
- .arg( item->unreadCount() < 0 ? "-" : TQString::number( item->unreadCount() ) )
- .arg( KIO::convertSize( item->folderSize() ) );
+ .tqarg( item->folder()->prettyURL().tqreplace( " ", " " ) )
+ .tqarg( item->totalCount() < 0 ? "-" : TQString::number( item->totalCount() ) )
+ .tqarg( item->unreadCount() < 0 ? "-" : TQString::number( item->unreadCount() ) )
+ .tqarg( KIO::convertSize( item->folderSize() ) );
if ( KMFolderCachedImap* imap = dynamic_cast( item->folder()->storage() ) ) {
QuotaInfo info = imap->quotaInfo();
if ( info.isValid() && !info.isEmpty() )
- tipText += i18n("
Quota: %1").arg( info.toString() );
+ tipText += i18n("
Quota: %1").tqarg( info.toString() );
}
tip( TQRect( headerRect.left(), tqitemRect.top(), headerRect.width(), tqitemRect.height() ), tipText );
diff --git a/kmail/headeritem.cpp b/kmail/headeritem.cpp
index 230b64999..7742e3ba6 100644
--- a/kmail/headeritem.cpp
+++ b/kmail/headeritem.cpp
@@ -458,7 +458,7 @@ TQString HeaderItem::generate_key( KMHeaders *headers,
int column = sortOrder & ((1 << 5) - 1);
TQString ret = TQChar( (char)sortOrder );
- TQString sortArrival = TQString( "%1" ).arg( msg->getMsgSerNum(), 0, 36 );
+ TQString sortArrival = TQString( "%1" ).tqarg( msg->getMsgSerNum(), 0, 36 );
while (sortArrival.length() < 7) sortArrival = '0' + sortArrival;
if (column == paintInfo->dateCol) {
diff --git a/kmail/headerlistquicksearch.cpp b/kmail/headerlistquicksearch.cpp
index 39df6dc9b..2ed869b61 100644
--- a/kmail/headerlistquicksearch.cpp
+++ b/kmail/headerlistquicksearch.cpp
@@ -57,7 +57,7 @@ HeaderListQuickSearch::HeaderListQuickSearch( TQWidget *tqparent,
TQApplication::reverseLayout()
? "clear_left"
: "locationbar_erase",
- 0, this,
+ 0, TQT_TQOBJECT(this),
TQT_SLOT( reset() ),
actionCollection,
"reset_quicksearch" );
@@ -112,12 +112,12 @@ HeaderListQuickSearch::~HeaderListQuickSearch()
bool HeaderListQuickSearch::eventFilter( TQObject *watched, TQEvent *event )
{
- if ( watched == mStatusCombo ) {
+ if ( TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(mStatusCombo) ) {
KMMainWidget *mainWidget = 0;
// Travel up the tqparents list until we find the main widget
for ( TQWidget *curWidget = tqparentWidget(); curWidget; curWidget = curWidget->tqparentWidget() ) {
- mainWidget = ::qt_cast( curWidget );
+ mainWidget = ::tqqt_cast( curWidget );
if ( mainWidget )
break;
}
diff --git a/kmail/headerstyle.cpp b/kmail/headerstyle.cpp
index 0b728444f..6e459c7aa 100644
--- a/kmail/headerstyle.cpp
+++ b/kmail/headerstyle.cpp
@@ -82,10 +82,10 @@ namespace KMail {
static TQString convertToHtmlBlock( const TQString & str, bool useSpan=false ) {
TQString dir = directionOf( str );
TQString format = "<%1 dir=\"%3\">%4%2>";
- return format.arg( useSpan ? "span" : "div" )
- .arg( useSpan ? "span" : "div" )
- .arg( dir )
- .arg( LinkLocator::convertToHtml( str ) );
+ return format.tqarg( useSpan ? "span" : "div" )
+ .tqarg( useSpan ? "span" : "div" )
+ .tqarg( dir )
+ .tqarg( LinkLocator::convertToHtml( str ) );
}
#endif
@@ -262,13 +262,13 @@ namespace KMail {
return headerStr + "";
}
- headerStr = TQString("