summaryrefslogtreecommitdiffstats
path: root/kget/logwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kget/logwindow.cpp')
-rw-r--r--kget/logwindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kget/logwindow.cpp b/kget/logwindow.cpp
index 7ce11939..b87743ed 100644
--- a/kget/logwindow.cpp
+++ b/kget/logwindow.cpp
@@ -45,8 +45,8 @@
// res.simplifyWhiteSpace();
// int pos;
-// while ( (pos = res.tqfind(' ')) != -1) {
-// res.tqreplace(pos, 1, new TQChar( 0x00a0 ), 1);
+// while ( (pos = res.find(' ')) != -1) {
+// res.replace(pos, 1, new TQChar( 0x00a0 ), 1);
// }
// return res;
@@ -58,14 +58,14 @@ static TQString removeHTML(const TQString & str)
TQString res = str;
int pos;
- // tqreplace <br/> with a newline
- while ((pos = res.tqfind("<br/>")) != -1) {
- res.tqreplace(pos, 4, "\n");
+ // replace <br/> with a newline
+ while ((pos = res.find("<br/>")) != -1) {
+ res.replace(pos, 4, "\n");
}
// remove all tags
- while ((pos = res.tqfind('<')) != -1) {
- int pos2 = res.tqfind('>', pos);
+ while ((pos = res.find('<')) != -1) {
+ int pos2 = res.find('>', pos);
if (pos2 == -1) {
pos2 = res.length() + 1;
@@ -112,7 +112,7 @@ SeparatedLog::SeparatedLog(TQWidget * tqparent):TQWidget(tqparent)
void SeparatedLog::addLog(uint id, const TQString & filename, const TQString & message)
{
- if (!trMap.tqcontains(id)) {
+ if (!trMap.contains(id)) {
trMap.insert(id, message);
TQListViewItem *last=lv_log->lastItem();
new TQListViewItem(lv_log, last);