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 --- kmail/kmaccount.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kmail/kmaccount.cpp') diff --git a/kmail/kmaccount.cpp b/kmail/kmaccount.cpp index 7cadcba97..9ffec93e2 100644 --- a/kmail/kmaccount.cpp +++ b/kmail/kmaccount.cpp @@ -46,7 +46,7 @@ KMPrecommand::KMPrecommand(const TQString &precommand, TQObject *parent) : TQObject(parent), mPrecommand(precommand) { BroadcastStatus::instance()->seStatusMsg( - i18n("Executing precommand %1").tqarg(precommand )); + i18n("Executing precommand %1").arg(precommand )); mPrecommandProcess.setUseShell(true); mPrecommandProcess << precommand; @@ -66,7 +66,7 @@ bool KMPrecommand::start() { bool ok = mPrecommandProcess.start( KProcess::NotifyOnExit ); if (!ok) KMessageBox::error(0, i18n("Could not execute precommand '%1'.") - .tqarg(mPrecommand)); + .arg(mPrecommand)); return ok; } @@ -77,7 +77,7 @@ void KMPrecommand::precommandExited(KProcess *p) int exitCode = p->normalExit() ? p->exitStatus() : -1; if (exitCode) KMessageBox::error(0, i18n("The precommand exited with code %1:\n%2") - .tqarg(exitCode).tqarg(strerror(exitCode))); + .arg(exitCode).arg(strerror(exitCode))); emit finished(!exitCode); } @@ -233,10 +233,10 @@ bool KMAccount::processNewMsg(KMMessage* aMsg) // This is only valid for pop accounts and produces wrong stati for imap. if ( type() != "cachedimap" && type() != "imap" ) { if ( aMsg->isOld() ) - aMsg->setqStatus(KMMsgStatusUnread); // -sanders - // aMsg->setqStatus(KMMsgStatusRead); + aMsg->seStatus(KMMsgStatusUnread); // -sanders + // aMsg->seStatus(KMMsgStatusRead); else - aMsg->setqStatus(KMMsgStatusNew); + aMsg->seStatus(KMMsgStatusNew); } /* TQFile fileD0( "testdat_xx-kmaccount-0" ); @@ -378,7 +378,7 @@ bool KMAccount::runPrecommand(const TQString &precommand) KMPrecommand precommandProcess(precommand, this); BroadcastStatus::instance()->seStatusMsg( - i18n("Executing precommand %1").tqarg(precommand )); + i18n("Executing precommand %1").arg(precommand )); connect(&precommandProcess, TQT_SIGNAL(finished(bool)), TQT_SLOT(precommandExited(bool))); @@ -426,9 +426,9 @@ TQString KMAccount::encryptStr(const TQString &aStr) TQString result; for (uint i = 0; i < aStr.length(); i++) /* yes, no typo. can't encode ' ' or '!' because - they're the tqunicode BOM. stupid scrambling. stupid. */ - result += (aStr[i].tqunicode() <= 0x21 ) ? aStr[i] : - TQChar(0x1001F - aStr[i].tqunicode()); + they're the unicode BOM. stupid scrambling. stupid. */ + result += (aStr[i].unicode() <= 0x21 ) ? aStr[i] : + TQChar(0x1001F - aStr[i].unicode()); return result; } @@ -470,7 +470,7 @@ void KMAccount::pseudoAssign( const KMAccount * a ) { } //----------------------------------------------------------------------------- -void KMAccount::checkDone( bool newmail, ChecktqStatus status ) +void KMAccount::checkDone( bool newmail, CheckStatus status ) { setCheckingMail( false ); // Reset the timeout for automatic mailchecking. The user might have -- cgit v1.2.1