diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kwordquiz/src/kvtmlwriter.cpp | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip |
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
Diffstat (limited to 'kwordquiz/src/kvtmlwriter.cpp')
-rw-r--r-- | kwordquiz/src/kvtmlwriter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 << "<?xml version=\"1.0\"?>" << 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("<kvtml\n generator=\"%1\"\n cols=\"%2\"\n lines=\"%3\"\n title=\"%4\">") - .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 << " <e>" << endl; TQString s = TQString(" <o width=\"%1\" l=\"%2\">") - .arg(lwidth) - .arg(ll); + .tqarg(lwidth) + .tqarg(ll); outputStream << s << escape(left) << "</o>" << endl; s = TQString(" <t width=\"%1\" l=\"%2\">") - .arg(rwidth) - .arg(rl); + .tqarg(rwidth) + .tqarg(rl); outputStream << s << escape(right) << "</t>" << endl; outputStream << " </e>" << 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; } |