diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:38:25 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:38:25 +0000 |
commit | f22f5c856d0ee7ec953825828bba094f14c9cade (patch) | |
tree | 1c89a4d4c420bce13c002b650e610bff026f6d06 /src/parsers/search.cpp | |
parent | 0bceb5251f3c826f8fc4ee021ab76ee29f1dfdd7 (diff) | |
download | tdeio-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/search.cpp')
-rw-r--r-- | src/parsers/search.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/parsers/search.cpp b/src/parsers/search.cpp index 0d0a952..5fd6b22 100644 --- a/src/parsers/search.cpp +++ b/src/parsers/search.cpp @@ -18,11 +18,11 @@ namespace Parsers { /** Parses the output of apt-cache search */ -void Search::operator() (AptProtocol* slave, const QString& tag, const QString& value) +void Search::operator() (AptProtocol* slave, const TQString& tag, const TQString& value) { - static QMap<QString, QString> results; - static QString cur_package; - static QString query; + static TQMap<TQString, TQString> results; + static TQString cur_package; + static TQString query; if (tag == "begin") { @@ -42,16 +42,16 @@ void Search::operator() (AptProtocol* slave, const QString& tag, const QString& { // We separate results whose package name matches the query // and those who matches only with the description - QString normal, special; - QHtmlStream sstream(&special), nstream(&normal); + TQString normal, special; + TQHtmlStream sstream(&special), nstream(&normal); - // QMap iteration sorts wrt the key < operator - // with QStrings, it means case insensitive sort - QMap<QString, QString>::ConstIterator i; + // TQMap iteration sorts wrt the key < operator + // with TQStrings, it means case insensitive sort + TQMap<TQString, TQString>::ConstIterator i; for (i = results.begin(); i != results.end(); ++i) { - const QString key = i.key(); - QHtmlStream* stream = &nstream; + const TQString key = i.key(); + TQHtmlStream* stream = &nstream; if (key == query) stream = &sstream; @@ -66,8 +66,8 @@ void Search::operator() (AptProtocol* slave, const QString& tag, const QString& } if (!special.isEmpty()) - *slave << QString("<table>") + special + QString("</table>\n<hr>\n"); - *slave << QString("<table>") + normal + QString("</table>"); + *slave << TQString("<table>") + special + TQString("</table>\n<hr>\n"); + *slave << TQString("<table>") + normal + TQString("</table>"); results.clear(); } |