summaryrefslogtreecommitdiffstats
path: root/lib/store/tests/xmlwritertest.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/store/tests/xmlwritertest.h')
-rw-r--r--lib/store/tests/xmlwritertest.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/store/tests/xmlwritertest.h b/lib/store/tests/xmlwritertest.h
index c5dc76e75..b3d305ea8 100644
--- a/lib/store/tests/xmlwritertest.h
+++ b/lib/store/tests/xmlwritertest.h
@@ -1,18 +1,18 @@
#ifndef XMLWRITERTEST_H
#define XMLWRITERTEST_H
-#define QT_NO_CAST_ASCII
+#define TQT_NO_CAST_ASCII
// Those macros are in a separate header file in order to share them
// with kofficecore/tests/kogenstylestest.cpp
-#include <qbuffer.h>
-#include <qregexp.h>
+#include <tqbuffer.h>
+#include <tqregexp.h>
#define TEST_BEGIN(publicId,systemId) \
{ \
- QCString cstr; \
- QBuffer buffer( cstr ); \
+ TQCString cstr; \
+ TQBuffer buffer( cstr ); \
buffer.open( IO_WriteOnly ); \
{ \
KoXmlWriter writer( &buffer ); \
@@ -24,18 +24,18 @@
writer.endDocument(); \
} \
buffer.putch( '\0' ); /*null-terminate*/ \
- QCString expectedFull( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ); \
+ TQCString expectedFull( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ); \
expectedFull += expected; \
if ( cstr == expectedFull ) \
qDebug( "%s OK", testname ); \
else { \
qDebug( "%s FAILED!", testname ); \
- QCString s1 = cstr; \
- QCString s2 = expectedFull; \
+ TQCString s1 = cstr; \
+ TQCString s2 = expectedFull; \
if ( s1.length() != s2.length() ) \
qDebug( "got length %d, expected %d", s1.length(), s2.length() ); \
- s1.replace( QRegExp( QString::fromLatin1( "[x]{1000}" ) ), "[x]*1000" ); \
- s2.replace( QRegExp( QString::fromLatin1( "[x]{1000}" ) ), "[x]*1000" ); \
+ s1.tqreplace( TQRegExp( TQString::tqfromLatin1( "[x]{1000}" ) ), "[x]*1000" ); \
+ s2.tqreplace( TQRegExp( TQString::tqfromLatin1( "[x]{1000}" ) ), "[x]*1000" ); \
qDebug( "%s", s1.data() ); \
qDebug( "Expected:\n%s", s2.data() ); \
return 1; /*exit*/ \