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 /kmail/tests/mimelibtests.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 'kmail/tests/mimelibtests.cpp')
-rw-r--r-- | kmail/tests/mimelibtests.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmail/tests/mimelibtests.cpp b/kmail/tests/mimelibtests.cpp index 8d9cf9e78..b152fdcf6 100644 --- a/kmail/tests/mimelibtests.cpp +++ b/kmail/tests/mimelibtests.cpp @@ -32,39 +32,39 @@ KUNITTEST_MODULE_REGISTER_TESTER( MimeLibTester ); #include <mimelib/string.h> #include <mimelib/message.h> #include "util.h" -#include <qfile.h> +#include <tqfile.h> #include <assert.h> #if 0 -static QString makePrintable( const QCString& str ) +static TQString makePrintable( const TQCString& str ) { - QString a = str; + TQString a = str; a = a.replace( '\r', "\\r" ); a = a.replace( '\n', "\\n" ); return a; } #endif -static QString makePrintable( const DwString& str ) +static TQString makePrintable( const DwString& str ) { - QString a = KMail::Util::CString( str ); // ## we assume latin1 + TQString a = KMail::Util::CString( str ); // ## we assume latin1 a = a.replace( '\r', "\\r" ); a = a.replace( '\n', "\\n" ); return a; } -QCString MimeLibTester::readFile(const QString& fileName) +TQCString MimeLibTester::readFile(const TQString& fileName) { - QFile file( fileName ); + TQFile file( fileName ); // #!@#$& kunittest... VERIFY() does nothing in setUp. Using assert instead. bool ok = file.open( IO_ReadOnly ); if ( !ok ) { kdError() << fileName << " not found!" << endl; abort(); } - QByteArray data = file.readAll(); + TQByteArray data = file.readAll(); assert( data.size() > 1 ); - QCString result; + TQCString result; KMail::Util::setFromByteArray( result, data ); return result; } |