From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- plugins/kmail/bodypartformatter/text_xdiff.cpp | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'plugins/kmail/bodypartformatter/text_xdiff.cpp') diff --git a/plugins/kmail/bodypartformatter/text_xdiff.cpp b/plugins/kmail/bodypartformatter/text_xdiff.cpp index ada37be80..87988840f 100644 --- a/plugins/kmail/bodypartformatter/text_xdiff.cpp +++ b/plugins/kmail/bodypartformatter/text_xdiff.cpp @@ -47,10 +47,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include namespace { @@ -66,40 +66,40 @@ namespace { if ( bodyPart->defaultDisplay() == KMail::Interface::BodyPart::AsIcon ) return AsIcon; - const QString diff = bodyPart->asText(); + const TQString diff = bodyPart->asText(); if ( diff.isEmpty() ) return AsIcon; - QString addedLineStyle = QString::fromLatin1( + TQString addedLineStyle = TQString::fromLatin1( "style=\"" "color: green;\""); - QString fileAddStyle( "style=\"font-weight: bold; " + TQString fileAddStyle( "style=\"font-weight: bold; " "color: green; \"" ); - QString removedLineStyle = QString::fromLatin1( + TQString removedLineStyle = TQString::fromLatin1( "style=\"" "color: red;\""); - QString fileRemoveStyle( "style=\"font-weight: bold; " + TQString fileRemoveStyle( "style=\"font-weight: bold; " "color: red ;\"" ); - QString tableStyle = QString::fromLatin1( + TQString tableStyle = TQString::fromLatin1( "style=\"" "text-align: -khtml-auto; " "border: solid black 1px; " "padding: 0.5em; " "margin: 0em;\""); - QString sepStyle( "style=\"color: black; font-weight: bold;\"" ); - QString chunkStyle( "style=\"color: blue;\"" ); + TQString sepStyle( "style=\"color: black; font-weight: bold;\"" ); + TQString chunkStyle( "style=\"color: blue;\"" ); - QString html = "
"; + TQString html = "
"; html += "
";
 
-      QStringList lines = QStringList::split( '\n', diff, true );
-      for ( QStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) {
-        QString line( QStyleSheet::escape( *it ) );
-        QString style;
+      TQStringList lines = TQStringList::split( '\n', diff, true );
+      for ( TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) {
+        TQString line( TQStyleSheet::escape( *it ) );
+        TQString style;
         if ( line.length() > 0 ) {
           if ( line.startsWith( "+++" ) ) {
             style = fileAddStyle;
-- 
cgit v1.2.1