summaryrefslogtreecommitdiffstats
path: root/src/parsers
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:30:40 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:30:40 -0600
commit9a210ba3a60a3348ede4a57602fd13e240da66aa (patch)
tree2896cd863121311a3e6dbb227cb3d6c3380fbf5c /src/parsers
parent0df776a58f9eace4d0a71077b9d6609d2560084c (diff)
downloadtdeio-apt-9a210ba3a60a3348ede4a57602fd13e240da66aa.tar.gz
tdeio-apt-9a210ba3a60a3348ede4a57602fd13e240da66aa.zip
Rename a number of old tq methods that are no longer tq specific
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 281aa63..e4185f2 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.tqarg(value);
+ *slave << html_dpkgs_line_begin.arg(value);
++m_result_count;
buffer = "";
}
diff --git a/src/parsers/list.cpp b/src/parsers/list.cpp
index e4cea8e..1c38cb7 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").tqarg(result_count()) + "</div>\n";
+ "<div class=\"footer\">" + i18n("%1 files in the package").arg(result_count()) + "</div>\n";
files.clear();
}
}
diff --git a/src/parsers/qhtmlstream.h b/src/parsers/qhtmlstream.h
index 7d27569..5f60599 100644
--- a/src/parsers/qhtmlstream.h
+++ b/src/parsers/qhtmlstream.h
@@ -10,7 +10,7 @@
#ifndef TQHtmlStream_H
#define TQHtmlStream_H
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqstringlist.h>
class TQHtmlStream;
diff --git a/src/parsers/show.cpp b/src/parsers/show.cpp
index 84ace04..5ffbc82 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.tqarg(value)
+ html_attribute_begin.arg(value)
+ "&nbsp;";
close_item(indent, buffer);
- buffer += html_attribute_begin.tqarg("&nbsp;");
+ buffer += html_attribute_begin.arg("&nbsp;");
}
else if (value != "Version" && value != "Package")
{
close_item(indent, buffer);
- buffer += html_attribute_begin.tqarg(value);
+ buffer += html_attribute_begin.arg(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\">").tqarg(item_id)
- + i18n("Installed version %1").tqarg(value);
+ version = TQString("<div class=\"version-header-installed\" id=\"%1\">").arg(item_id)
+ + i18n("Installed version %1").arg(value);
}
else
{
action.setQuery("install");
- version = TQString("<div class=\"version-header\" id=\"%1\">").tqarg(item_id)
- + i18n("Version %1").tqarg(value);
+ version = TQString("<div class=\"version-header\" id=\"%1\">").arg(item_id)
+ + i18n("Version %1").arg(value);
}
action.addQueryItem("package", m_package);