summaryrefslogtreecommitdiffstats
path: root/src/parsers
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:56:11 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:56:11 -0600
commit93a6198212819d0cc95ce1bb0d80508523ab32c6 (patch)
treeae892ef46252c6f746f7ed5aeafeb61c50223756 /src/parsers
parent9a210ba3a60a3348ede4a57602fd13e240da66aa (diff)
downloadtdeio-apt-93a6198212819d0cc95ce1bb0d80508523ab32c6.tar.gz
tdeio-apt-93a6198212819d0cc95ce1bb0d80508523ab32c6.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 9a210ba3a60a3348ede4a57602fd13e240da66aa.
Diffstat (limited to 'src/parsers')
-rw-r--r--src/parsers/filesearch.cpp2
-rw-r--r--src/parsers/list.cpp2
-rw-r--r--src/parsers/qhtmlstream.h2
-rw-r--r--src/parsers/show.cpp14
4 files changed, 10 insertions, 10 deletions
diff --git a/src/parsers/filesearch.cpp b/src/parsers/filesearch.cpp
index e4185f2..281aa63 100644
--- a/src/parsers/filesearch.cpp
+++ b/src/parsers/filesearch.cpp
@@ -33,7 +33,7 @@ void FileSearch::operator() (AptProtocol* slave, const TQString & tag, const TQS
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 = "";
}
diff --git a/src/parsers/list.cpp b/src/parsers/list.cpp
index 1c38cb7..e4cea8e 100644
--- a/src/parsers/list.cpp
+++ b/src/parsers/list.cpp
@@ -62,7 +62,7 @@ namespace Parsers
files.sort();
*slave <<
"<div class=\"filelist\">\n" + files.join("\n<br>") + "\n</div>\n"
- "<div class=\"footer\">" + i18n("%1 files in the package").arg(result_count()) + "</div>\n";
+ "<div class=\"footer\">" + i18n("%1 files in the package").tqarg(result_count()) + "</div>\n";
files.clear();
}
}
diff --git a/src/parsers/qhtmlstream.h b/src/parsers/qhtmlstream.h
index 5f60599..7d27569 100644
--- a/src/parsers/qhtmlstream.h
+++ b/src/parsers/qhtmlstream.h
@@ -10,7 +10,7 @@
#ifndef TQHtmlStream_H
#define TQHtmlStream_H
-#include <textstream.h>
+#include <tqtextstream.h>
#include <tqstringlist.h>
class TQHtmlStream;
diff --git a/src/parsers/show.cpp b/src/parsers/show.cpp
index 5ffbc82..84ace04 100644
--- a/src/parsers/show.cpp
+++ b/src/parsers/show.cpp
@@ -101,16 +101,16 @@ void Show::operator() (AptProtocol* slave, const TQString& tag, const TQString&
{
close_item(indent, buffer);
buffer +=
- html_attribute_begin.arg(value)
+ html_attribute_begin.tqarg(value)
+ "&nbsp;";
close_item(indent, buffer);
- buffer += html_attribute_begin.arg("&nbsp;");
+ buffer += html_attribute_begin.tqarg("&nbsp;");
}
else if (value != "Version" && value != "Package")
{
close_item(indent, buffer);
- buffer += html_attribute_begin.arg(value);
+ buffer += html_attribute_begin.tqarg(value);
}
if (value == "Description")
@@ -141,14 +141,14 @@ void Show::operator() (AptProtocol* slave, const TQString& tag, const TQString&
if (value == m_installed)
{
action.setQuery("remove");
- version = TQString("<div class=\"version-header-installed\" id=\"%1\">").arg(item_id)
- + i18n("Installed version %1").arg(value);
+ version = TQString("<div class=\"version-header-installed\" id=\"%1\">").tqarg(item_id)
+ + i18n("Installed version %1").tqarg(value);
}
else
{
action.setQuery("install");
- version = TQString("<div class=\"version-header\" id=\"%1\">").arg(item_id)
- + i18n("Version %1").arg(value);
+ version = TQString("<div class=\"version-header\" id=\"%1\">").tqarg(item_id)
+ + i18n("Version %1").tqarg(value);
}
action.addQueryItem("package", m_package);