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/filesearch.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/filesearch.cpp')
-rw-r--r-- | src/parsers/filesearch.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parsers/filesearch.cpp b/src/parsers/filesearch.cpp index c0a7a36..281aa63 100644 --- a/src/parsers/filesearch.cpp +++ b/src/parsers/filesearch.cpp @@ -10,16 +10,16 @@ #include "parsers.h" #include "../apt.h" -static QString +static TQString html_dpkgs_line_begin("<tr><td class=\"file\">%1</td><td>\n\t"), html_dpkgs_line_end("\n</td></tr>\n"); namespace Parsers { -void FileSearch::operator() (AptProtocol* slave, const QString & tag, const QString & value ) +void FileSearch::operator() (AptProtocol* slave, const TQString & tag, const TQString & value ) { - static QString buffer; + static TQString buffer; if (tag == "begin") { m_result_count = 0; @@ -33,7 +33,7 @@ void FileSearch::operator() (AptProtocol* slave, const QString & tag, const QStr if (m_result_count) *slave << buffer + html_dpkgs_line_end; - *slave << html_dpkgs_line_begin.arg(value); + *slave << html_dpkgs_line_begin.tqarg(value); ++m_result_count; buffer = ""; } |