From 716a5de8870d7c02bb4d0aed72f30291b17b763a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 19 Dec 2011 11:59:01 -0600 Subject: Remove additional unneeded tq method conversions --- kmail/headerstyle.cpp | 96 +++++++++++++++++++++++++-------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'kmail/headerstyle.cpp') diff --git a/kmail/headerstyle.cpp b/kmail/headerstyle.cpp index 405f802b1..ab3ae9364 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"; - return format.tqarg( useSpan ? "span" : "div" ) - .tqarg( useSpan ? "span" : "div" ) - .tqarg( dir ) - .tqarg( LinkLocator::convertToHtml( str ) ); + return format.arg( useSpan ? "span" : "div" ) + .arg( useSpan ? "span" : "div" ) + .arg( dir ) + .arg( LinkLocator::convertToHtml( str ) ); } #endif @@ -262,13 +262,13 @@ namespace KMail { return headerStr + ""; } - headerStr = TQString("
").tqarg(dir); + headerStr = TQString("
").arg(dir); //case HdrLong: if ( strategy->showHeader( "subject" ) ) headerStr += TQString("
" + strToHtml(message->subject()) + "
\n") - .tqarg(subjectDir); + .arg(subjectDir); if ( strategy->showHeader( "date" ) ) headerStr.append(i18n("Date: ") + strToHtml(dateString)+"
\n"); @@ -408,9 +408,9 @@ namespace KMail { } } TQString titleText = i18n("%1% probability of being spam.\n\nFull report:\n%2") - .tqarg( TQString::number( percent ), filterHeader ); + .arg( TQString::number( percent ), filterHeader ); return TQString("  ") - .tqarg( imgToDataUrl( meterBar, "PPM" ), TQString::number( 20 ), + .arg( imgToDataUrl( meterBar, "PPM" ), TQString::number( 20 ), TQString::number( 5 ), titleText ); } @@ -430,7 +430,7 @@ namespace KMail { // of the application tqlayout. TQString dir = ( TQApplication::reverseLayout() ? "rtl" : "ltr" ); - TQString headerStr = TQString("
\n").tqarg(dir); + TQString headerStr = TQString("
\n").arg(dir); // However, the direction of the message subject within the header is // determined according to the contents of the subject itself. Since @@ -494,7 +494,7 @@ namespace KMail { if ( !presence.isEmpty() ) { TQString presenceIcon = TQString::fromLatin1( " " ) - .tqarg( imgToDataUrl( imProxy->presenceIcon( kabcUid ).convertToImage() ) ); + .arg( imgToDataUrl( imProxy->presenceIcon( kabcUid ).convertToImage() ) ); presence += presenceIcon; } } @@ -585,26 +585,26 @@ namespace KMail { { //kdDebug( 5006 ) << "Got a photo: " << photoURL << endl; userHTML = TQString("") - .tqarg( photoURL ).tqarg( photoWidth ).tqarg( photoHeight ); + .arg( photoURL ).arg( photoWidth ).arg( photoHeight ); if ( presence.isEmpty() ) { userHTML = TQString("
") + userHTML + "
"; } else { userHTML = TQString( "
" "%2
" "%4
" - "
" ).tqarg( kabcUid ) - .tqarg( userHTML ) - .tqarg( kabcUid ) - .tqarg( presence ); + "
" ).arg( kabcUid ) + .arg( userHTML ) + .arg( kabcUid ) + .arg( presence ); } } else { // we don't have a photo, just show presence, if we have it if ( !presence.isEmpty() ) userHTML = TQString( "
" "%3
" ) - .tqarg( kabcUid ) - .tqarg( kabcUid ) - .tqarg( presence ); + .arg( kabcUid ) + .arg( kabcUid ) + .arg( presence ); } #if 0 // Disabled 'Launch IM' link in headers - Will @@ -719,12 +719,12 @@ namespace KMail { "margin: 0px 0px 3px 0px;" "\" class=\"curtime\">%4
%5
%6
" ) - .tqarg( bg_color ) - .tqarg( color ) - .tqarg( bg_image ) - .tqarg( i18n( "Now:" ) ) - .tqarg( currTime.toString( tformat ) ) - .tqarg( timeofday ) + .arg( bg_color ) + .arg( color ) + .arg( bg_image ) + .arg( i18n( "Now:" ) ) + .arg( currTime.toString( tformat ) ) + .arg( timeofday ) ); } else { @@ -739,8 +739,8 @@ namespace KMail { ( GlobalSettings::self()->showEmoticons() ? LinkLocator::ReplaceSmileys : 0 ); headerStr += TQString("
%2
\n") - .tqarg(subjectDir) - .tqarg(message->subject().isEmpty()? + .arg(subjectDir) + .arg(message->subject().isEmpty()? i18n("No Subject") : strToHtml( message->subject(), flags )); } @@ -755,11 +755,11 @@ namespace KMail { fromStr = message->fromStrip(); // let's use that headerStr += TQString("%1\n" "") - .tqarg(i18n("From: ")) + .arg(i18n("From: ")) + KMMessage::emailAddrAsAnchor( fromStr, false ) + ( !message->headerField( "Resent-From" ).isEmpty() ? " " + i18n("(resent from %1)") - .tqarg( KMMessage::emailAddrAsAnchor( + .arg( KMMessage::emailAddrAsAnchor( message->headerField( "Resent-From" ),false) ) : TQString("") ) + ( !vCardName.isEmpty() ? "  " @@ -781,37 +781,37 @@ namespace KMail { if ( strategy->showHeader( "to" ) ) headerStr.append(TQString("%1\n" "%2\n") - .tqarg(i18n("To: ")) - .tqarg(KMMessage::emailAddrAsAnchor(message->to(),false))); + .arg(i18n("To: ")) + .arg(KMMessage::emailAddrAsAnchor(message->to(),false))); // cc line, if any if ( strategy->showHeader( "cc" ) && !message->cc().isEmpty()) headerStr.append(TQString("%1\n" "%2\n") - .tqarg(i18n("CC: ")) - .tqarg(KMMessage::emailAddrAsAnchor(message->cc(),false))); + .arg(i18n("CC: ")) + .arg(KMMessage::emailAddrAsAnchor(message->cc(),false))); // Bcc line, if any if ( strategy->showHeader( "bcc" ) && !message->bcc().isEmpty()) headerStr.append(TQString("%1\n" "%2\n") - .tqarg(i18n("BCC: ")) - .tqarg(KMMessage::emailAddrAsAnchor(message->bcc(),false))); + .arg(i18n("BCC: ")) + .arg(KMMessage::emailAddrAsAnchor(message->bcc(),false))); if ( strategy->showHeader( "date" ) ) headerStr.append(TQString("%1\n" "%3\n") - .tqarg(i18n("Date: ")) - .tqarg( directionOf( message->dateStr() ) ) - .tqarg(strToHtml(dateString))); + .arg(i18n("Date: ")) + .arg( directionOf( message->dateStr() ) ) + .arg(strToHtml(dateString))); if ( GlobalSettings::self()->showUserAgent() ) { if ( strategy->showHeader( "user-agent" ) ) { if ( !message->headerField("User-Agent").isEmpty() ) { headerStr.append(TQString("%1\n" "%2\n") - .tqarg(i18n("User-Agent: ")) - .tqarg( strToHtml( message->headerField("User-Agent") ) ) ); + .arg(i18n("User-Agent: ")) + .arg( strToHtml( message->headerField("User-Agent") ) ) ); } } @@ -819,8 +819,8 @@ namespace KMail { if ( !message->headerField("X-Mailer").isEmpty() ) { headerStr.append(TQString("%1\n" "%2\n") - .tqarg(i18n("X-Mailer: ")) - .tqarg( strToHtml( message->headerField("X-Mailer") ) ) ); + .arg(i18n("X-Mailer: ")) + .arg( strToHtml( message->headerField("X-Mailer") ) ) ); } } } @@ -829,19 +829,19 @@ namespace KMail { /* if( strategy->showHeader( "status" ) ) headerStr.append( TQString( "%1\n" "%3\n") - .tqarg(i18n("Sender status: ")) - .tqarg( directionOf( onlineStatus ) ) - .tqarg(onlineStatus)); + .arg(i18n("Sender status: ")) + .arg( directionOf( onlineStatus ) ) + .arg(onlineStatus)); */ headerStr.append( TQString("
" ) ); headerStr.append( TQString( "%1%2\n" ) - .tqarg(timeHTML) - .tqarg(userHTML) ); + .arg(timeHTML) + .arg(userHTML) ); if ( !spamHTML.isEmpty() ) headerStr.append( TQString( "
%2 %3
\n") - .tqarg( subjectDir, i18n("Spam Status:"), spamHTML ) ); + .arg( subjectDir, i18n("Spam Status:"), spamHTML ) ); headerStr += "
\n\n"; return headerStr; @@ -854,7 +854,7 @@ namespace KMail { buffer.open( IO_WriteOnly ); image.save( &buffer, fmt ); return TQString::fromLatin1("data:image/%1;base64,%2") - .tqarg( fmt, KCodecs::base64Encode( ba ).data() ); + .arg( fmt, KCodecs::base64Encode( ba ).data() ); } // ##################### -- cgit v1.2.1