summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/kvtmlwriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kwordquiz/src/kvtmlwriter.cpp')
-rw-r--r--kwordquiz/src/kvtmlwriter.cpp24
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('&'), "&amp;"); //must be done first
- result.replace(TQChar('<'), "&lt;");
- result.replace(TQChar('>'), "&gt;");
+ result.tqreplace(TQChar('&'), "&amp;"); //must be done first
+ result.tqreplace(TQChar('<'), "&lt;");
+ result.tqreplace(TQChar('>'), "&gt;");
return result;
}