diff options
Diffstat (limited to 'src/parsers/parsers.cpp')
-rw-r--r-- | src/parsers/parsers.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/parsers/parsers.cpp b/src/parsers/parsers.cpp index 2f959ce..2789355 100644 --- a/src/parsers/parsers.cpp +++ b/src/parsers/parsers.cpp @@ -14,7 +14,7 @@ #include <kio/slavebase.h> #include <qhtmlstream.h> -#include <qregexp.h> +#include <tqregexp.h> #include <stdlib.h> @@ -22,14 +22,14 @@ namespace Parsers { static void print_czstring(KIO::SlaveBase& slave, const char* data, int len) { - QByteArray nonull; + TQByteArray nonull; nonull.setRawData(data, len); slave.data(nonull); nonull.resetRawData(data, len); } - void operator << (KIO::SlaveBase& slave, const QCString& string) + void operator << (KIO::SlaveBase& slave, const TQCString& string) { print_czstring(slave, string.data(), string.size() - 1); } - void operator << (KIO::SlaveBase& slave, const QString& string) + void operator << (KIO::SlaveBase& slave, const TQString& string) { slave << string.utf8(); } void operator << (KIO::SlaveBase& slave, const char* string) { print_czstring(slave, string, strlen(string)); } @@ -39,7 +39,7 @@ namespace Parsers Parser::Parser( ) {} Parser::~Parser( ) {} - void Parser::attribute_begin(QHtmlStream& stream, const QString& text) + void Parser::attribute_begin(TQHtmlStream& stream, const TQString& text) { stream << block("tr") << endl @@ -48,15 +48,15 @@ namespace Parsers << close() << endl << block("td"); } - void Parser::attribute_end(QHtmlStream& stream) + void Parser::attribute_end(TQHtmlStream& stream) { stream << close() << endl << close(); } // void Parser::operator ( )( KIO::SlaveBase * /*slave*/, -// const QString & /*tag*/, const QString & /*value*/ ) +// const TQString & /*tag*/, const TQString & /*value*/ ) // {} - QString mangle_version(QString version) - { return "version_" + version.replace(QRegExp("[-:\\.\\+]"), QString("_")); } + TQString mangle_version(TQString version) + { return "version_" + version.tqreplace(TQRegExp("[-:\\.\\+]"), TQString("_")); } } |