From 937b2991d8e78166eea904c80ad04d34607017a4 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kget/logwindow.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kget/logwindow.cpp') 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
with a newline - while ((pos = res.tqfind("
")) != -1) { - res.tqreplace(pos, 4, "\n"); + // replace
with a newline + while ((pos = res.find("
")) != -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); -- cgit v1.2.1