summaryrefslogtreecommitdiffstats
path: root/kmail/headerstyle.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /kmail/headerstyle.cpp
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'kmail/headerstyle.cpp')
-rw-r--r--kmail/headerstyle.cpp112
1 files changed, 56 insertions, 56 deletions
diff --git a/kmail/headerstyle.cpp b/kmail/headerstyle.cpp
index 5686d2c0d..ac45aeeb6 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
@@ -124,7 +124,7 @@ namespace KMail {
strategy = HeaderStrategy::brief();
// The direction of the header is determined according to the direction
- // of the application layout.
+ // of the application tqlayout.
TQString dir = TQApplication::reverseLayout() ? "rtl" : "ltr" ;
@@ -223,7 +223,7 @@ namespace KMail {
strategy = HeaderStrategy::rich();
// The direction of the header is determined according to the direction
- // of the application layout.
+ // of the application tqlayout.
TQString dir = ( TQApplication::reverseLayout() ? "rtl" : "ltr" );
@@ -262,13 +262,13 @@ namespace KMail {
return headerStr + "</div>";
}
- headerStr = TQString("<div class=\"header\" dir=\"%1\">").arg(dir);
+ headerStr = TQString("<div class=\"header\" dir=\"%1\">").tqarg(dir);
//case HdrLong:
if ( strategy->showHeader( "subject" ) )
headerStr += TQString("<div dir=\"%1\"><b style=\"font-size:130%\">" +
strToHtml(message->subject()) + "</b></div>\n")
- .arg(subjectDir);
+ .tqarg(subjectDir);
if ( strategy->showHeader( "date" ) )
headerStr.append(i18n("Date: ") + strToHtml(dateString)+"<br>\n");
@@ -408,9 +408,9 @@ namespace KMail {
}
}
TQString titleText = i18n("%1% probability of being spam.\n\nFull report:\n%2")
- .arg( TQString::number( percent ), filterHeader );
+ .tqarg( TQString::number( percent ), filterHeader );
return TQString("<img src=\"%1\" width=\"%2\" height=\"%3\" style=\"border: 1px solid black;\" title=\"%4\"> &nbsp;")
- .arg( imgToDataUrl( meterBar, "PPM" ), TQString::number( 20 ),
+ .tqarg( imgToDataUrl( meterBar, "PPM" ), TQString::number( 20 ),
TQString::number( 5 ), titleText );
}
@@ -427,10 +427,10 @@ namespace KMail {
// ### from kmreaderwin begin
// The direction of the header is determined according to the direction
- // of the application layout.
+ // of the application tqlayout.
TQString dir = ( TQApplication::reverseLayout() ? "rtl" : "ltr" );
- TQString headerStr = TQString("<div class=\"fancy header\" dir=\"%1\">\n").arg(dir);
+ TQString headerStr = TQString("<div class=\"fancy header\" dir=\"%1\">\n").tqarg(dir);
// However, the direction of the message subject within the header is
// determined according to the contents of the subject itself. Since
@@ -457,7 +457,7 @@ namespace KMail {
}
// Spam header display.
- // If the spamSpamStatus config value is true then we look for headers
+ // If the spamSpamtqStatus config value is true then we look for headers
// from a few spam filters and try to create visually meaningful graphics
// out of the spam scores.
@@ -493,8 +493,8 @@ namespace KMail {
presence = imProxy->presenceString( kabcUid );
if ( !presence.isEmpty() )
{
- TQString presenceIcon = TQString::fromLatin1( " <img src=\"%1\"/>" )
- .arg( imgToDataUrl( imProxy->presenceIcon( kabcUid ).convertToImage() ) );
+ TQString presenceIcon = TQString::tqfromLatin1( " <img src=\"%1\"/>" )
+ .tqarg( imgToDataUrl( imProxy->presenceIcon( kabcUid ).convertToImage() ) );
presence += presenceIcon;
}
}
@@ -585,26 +585,26 @@ namespace KMail {
{
//kdDebug( 5006 ) << "Got a photo: " << photoURL << endl;
userHTML = TQString("<img src=\"%1\" width=\"%2\" height=\"%3\">")
- .arg( photoURL ).arg( photoWidth ).arg( photoHeight );
+ .tqarg( photoURL ).tqarg( photoWidth ).tqarg( photoHeight );
if ( presence.isEmpty() ) {
userHTML = TQString("<div class=\"senderpic\">") + userHTML + "</div>";
} else {
userHTML = TQString( "<div class=\"senderpic\">"
"<a href=\"im:%1\">%2<div class=\"senderstatus\">"
"<span name=\"presence-%3\">%4</span></div></a>"
- "</div>" ).arg( kabcUid )
- .arg( userHTML )
- .arg( kabcUid )
- .arg( presence );
+ "</div>" ).tqarg( kabcUid )
+ .tqarg( userHTML )
+ .tqarg( kabcUid )
+ .tqarg( presence );
}
} else {
// we don't have a photo, just show presence, if we have it
if ( !presence.isEmpty() )
userHTML = TQString( "<a href=\"im:%1\"><div class=\"senderstatus\">"
"<span name=\"presence-%2\">%3</span></div></a>" )
- .arg( kabcUid )
- .arg( kabcUid )
- .arg( presence );
+ .tqarg( kabcUid )
+ .tqarg( kabcUid )
+ .tqarg( presence );
}
#if 0
// Disabled 'Launch IM' link in headers - Will
@@ -719,12 +719,12 @@ namespace KMail {
"margin: 0px 0px 3px 0px;"
"\" class=\"curtime\">%4<br />%5<br />%6</div>"
)
- .arg( bg_color )
- .arg( color )
- .arg( bg_image )
- .arg( i18n( "Now:" ) )
- .arg( currTime.toString( tformat ) )
- .arg( timeofday )
+ .tqarg( bg_color )
+ .tqarg( color )
+ .tqarg( bg_image )
+ .tqarg( i18n( "Now:" ) )
+ .tqarg( currTime.toString( tformat ) )
+ .tqarg( timeofday )
);
}
else {
@@ -739,8 +739,8 @@ namespace KMail {
( GlobalSettings::self()->showEmoticons() ?
LinkLocator::ReplaceSmileys : 0 );
headerStr += TQString("<div dir=\"%1\">%2</div>\n")
- .arg(subjectDir)
- .arg(message->subject().isEmpty()?
+ .tqarg(subjectDir)
+ .tqarg(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("<tr><th>%1</th>\n"
"<td>")
- .arg(i18n("From: "))
+ .tqarg(i18n("From: "))
+ KMMessage::emailAddrAsAnchor( fromStr, false )
+ ( !message->headerField( "Resent-From" ).isEmpty() ? "&nbsp;"
+ i18n("(resent from %1)")
- .arg( KMMessage::emailAddrAsAnchor(
+ .tqarg( KMMessage::emailAddrAsAnchor(
message->headerField( "Resent-From" ),false) )
: TQString("") )
+ ( !vCardName.isEmpty() ? "&nbsp;&nbsp;<a href=\"" + vCardName + "\">"
@@ -781,37 +781,37 @@ namespace KMail {
if ( strategy->showHeader( "to" ) )
headerStr.append(TQString("<tr><th>%1</th>\n"
"<td>%2</td></tr>\n")
- .arg(i18n("To: "))
- .arg(KMMessage::emailAddrAsAnchor(message->to(),false)));
+ .tqarg(i18n("To: "))
+ .tqarg(KMMessage::emailAddrAsAnchor(message->to(),false)));
// cc line, if any
if ( strategy->showHeader( "cc" ) && !message->cc().isEmpty())
headerStr.append(TQString("<tr><th>%1</th>\n"
"<td>%2</td></tr>\n")
- .arg(i18n("CC: "))
- .arg(KMMessage::emailAddrAsAnchor(message->cc(),false)));
+ .tqarg(i18n("CC: "))
+ .tqarg(KMMessage::emailAddrAsAnchor(message->cc(),false)));
// Bcc line, if any
if ( strategy->showHeader( "bcc" ) && !message->bcc().isEmpty())
headerStr.append(TQString("<tr><th>%1</th>\n"
"<td>%2</td></tr>\n")
- .arg(i18n("BCC: "))
- .arg(KMMessage::emailAddrAsAnchor(message->bcc(),false)));
+ .tqarg(i18n("BCC: "))
+ .tqarg(KMMessage::emailAddrAsAnchor(message->bcc(),false)));
if ( strategy->showHeader( "date" ) )
headerStr.append(TQString("<tr><th>%1</th>\n"
"<td dir=\"%2\">%3</td></tr>\n")
- .arg(i18n("Date: "))
- .arg( directionOf( message->dateStr() ) )
- .arg(strToHtml(dateString)));
+ .tqarg(i18n("Date: "))
+ .tqarg( directionOf( message->dateStr() ) )
+ .tqarg(strToHtml(dateString)));
if ( GlobalSettings::self()->showUserAgent() ) {
if ( strategy->showHeader( "user-agent" ) ) {
if ( !message->headerField("User-Agent").isEmpty() ) {
headerStr.append(TQString("<tr><th>%1</th>\n"
"<td>%2</td></tr>\n")
- .arg(i18n("User-Agent: "))
- .arg( strToHtml( message->headerField("User-Agent") ) ) );
+ .tqarg(i18n("User-Agent: "))
+ .tqarg( strToHtml( message->headerField("User-Agent") ) ) );
}
}
@@ -819,8 +819,8 @@ namespace KMail {
if ( !message->headerField("X-Mailer").isEmpty() ) {
headerStr.append(TQString("<tr><th>%1</th>\n"
"<td>%2</td></tr>\n")
- .arg(i18n("X-Mailer: "))
- .arg( strToHtml( message->headerField("X-Mailer") ) ) );
+ .tqarg(i18n("X-Mailer: "))
+ .tqarg( strToHtml( message->headerField("X-Mailer") ) ) );
}
}
}
@@ -829,19 +829,19 @@ namespace KMail {
/* if( strategy->showHeader( "status" ) )
headerStr.append( TQString( "<tr><th>%1</th>\n"
"<td dir=\"%2\">%3</td></tr>\n")
- .arg(i18n("Sender status: "))
- .arg( directionOf( onlineStatus ) )
- .arg(onlineStatus));
+ .tqarg(i18n("Sender status: "))
+ .tqarg( directionOf( onlinetqStatus ) )
+ .tqarg(onlinetqStatus));
*/
headerStr.append( TQString("<tr><td colspan=\"2\"><div id=\"attachmentInjectionPoint\"></div></td></tr>" ) );
headerStr.append(
TQString( "</table></td><td align=\"center\" valign=\"top\">%1%2</td></tr></table>\n" )
- .arg(timeHTML)
- .arg(userHTML) );
+ .tqarg(timeHTML)
+ .tqarg(userHTML) );
if ( !spamHTML.isEmpty() )
headerStr.append( TQString( "<div class=\"spamheader\" dir=\"%1\"><b>%2</b>&nbsp;<span style=\"padding-left: 20px;\">%3</span></div>\n")
- .arg( subjectDir, i18n("Spam Status:"), spamHTML ) );
+ .tqarg( subjectDir, i18n("Spam Status:"), spamHTML ) );
headerStr += "</div>\n\n";
return headerStr;
@@ -853,8 +853,8 @@ namespace KMail {
TQBuffer buffer( ba );
buffer.open( IO_WriteOnly );
image.save( &buffer, fmt );
- return TQString::fromLatin1("data:image/%1;base64,%2")
- .arg( fmt, KCodecs::base64Encode( ba ).data() );
+ return TQString::tqfromLatin1("data:image/%1;base64,%2")
+ .tqarg( fmt, KCodecs::base64Encode( ba ).data() );
}
// #####################
@@ -882,7 +882,7 @@ namespace KMail {
strategy = HeaderStrategy::brief();
// The direction of the header is determined according to the direction
- // of the application layout.
+ // of the application tqlayout.
TQString dir = TQApplication::reverseLayout() ? "rtl" : "ltr" ;
@@ -901,7 +901,7 @@ namespace KMail {
// colors depend on if its encapsulated or not
TQColor fontColor(TQt::white);
TQString linkColor = "class =\"white\"";
- const TQColor activeColor = tqApp->palette().active().highlight();
+ const TQColor activeColor = tqApp->tqpalette().active().highlight();
TQColor activeColorDark = activeColor.dark(130);
// reverse colors for encapsulated
if( !topLevel ){