summaryrefslogtreecommitdiffstats
path: root/kmail/tests/mimelibtests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmail/tests/mimelibtests.cpp')
-rw-r--r--kmail/tests/mimelibtests.cpp18
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;
}