summaryrefslogtreecommitdiffstats
path: root/src/parsers/parsers.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:38:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:38:25 +0000
commitf22f5c856d0ee7ec953825828bba094f14c9cade (patch)
tree1c89a4d4c420bce13c002b650e610bff026f6d06 /src/parsers/parsers.cpp
parent0bceb5251f3c826f8fc4ee021ab76ee29f1dfdd7 (diff)
downloadtdeio-apt-f22f5c856d0ee7ec953825828bba094f14c9cade.tar.gz
tdeio-apt-f22f5c856d0ee7ec953825828bba094f14c9cade.zip
TQt4 port kio-apt
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-apt@1239302 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/parsers/parsers.cpp')
-rw-r--r--src/parsers/parsers.cpp18
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("_")); }
}