diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /plugins/kmail/bodypartformatter/text_xdiff.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/kmail/bodypartformatter/text_xdiff.cpp')
-rw-r--r-- | plugins/kmail/bodypartformatter/text_xdiff.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
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 <kstandarddirs.h> #include <kapplication.h> -#include <qurl.h> -#include <qfile.h> -#include <qdir.h> -#include <qstylesheet.h> +#include <tqurl.h> +#include <tqfile.h> +#include <tqdir.h> +#include <tqstylesheet.h> 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 = "<br><div align=\"center\">"; + TQString html = "<br><div align=\"center\">"; html += "<pre " + tableStyle + ">"; - 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; |