From a374efce3a207b39514be3c52264091400ce297e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 11 Jun 2011 04:44:41 +0000 Subject: TQt4 port kdeedu This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kwordquiz/src/kvtmlwriter.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kwordquiz/src/kvtmlwriter.cpp') diff --git a/kwordquiz/src/kvtmlwriter.cpp b/kwordquiz/src/kvtmlwriter.cpp index 787cabab..4cf9ebe3 100644 --- a/kwordquiz/src/kvtmlwriter.cpp +++ b/kwordquiz/src/kvtmlwriter.cpp @@ -21,7 +21,7 @@ KVTMLWriter::KVTMLWriter(TQFile *file) outputFile = file; if(outputFile->open(IO_WriteOnly)) { - outputStream.setDevice(outputFile); + outputStream.setDevice(TQT_TQIODEVICE(outputFile)); outputStream.setEncoding(TQTextStream::UnicodeUTF8); outputStream << "" << endl; @@ -35,10 +35,10 @@ KVTMLWriter::KVTMLWriter(TQFile *file) void KVTMLWriter::addHeader(const TQString &generator, int cols, int rows, const TQString &title) { TQString s = TQString("") - .arg(generator) - .arg(cols) - .arg(rows) - .arg(title); + .tqarg(generator) + .tqarg(cols) + .tqarg(rows) + .tqarg(title); outputStream << s << endl << endl; } @@ -50,12 +50,12 @@ void KVTMLWriter::addFirstItem(const TQString &ll, int lwidth, const TQString &l { outputStream << " " << endl; TQString s = TQString(" ") - .arg(lwidth) - .arg(ll); + .tqarg(lwidth) + .tqarg(ll); outputStream << s << escape(left) << "" << endl; s = TQString(" ") - .arg(rwidth) - .arg(rl); + .tqarg(rwidth) + .tqarg(rl); outputStream << s << escape(right) << "" << endl; outputStream << " " << endl; } @@ -81,9 +81,9 @@ KVTMLWriter::~KVTMLWriter() TQString KVTMLWriter::escape( const TQString & s) { TQString result = s; - result.replace(TQChar('&'), "&"); //must be done first - result.replace(TQChar('<'), "<"); - result.replace(TQChar('>'), ">"); + result.tqreplace(TQChar('&'), "&"); //must be done first + result.tqreplace(TQChar('<'), "<"); + result.tqreplace(TQChar('>'), ">"); return result; } -- cgit v1.2.1