diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | acd0828c7a0c5d67f4474a82af93e5ff52cfb9dc (patch) | |
tree | bfd1de1a52361a3b1611dad9dc499b84026ebc15 /krusader/Search | |
parent | aafc63ac622acd3272fdceabffe3828142f41d73 (diff) | |
download | krusader-acd0828c7a0c5d67f4474a82af93e5ff52cfb9dc.tar.gz krusader-acd0828c7a0c5d67f4474a82af93e5ff52cfb9dc.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krusader@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krusader/Search')
-rw-r--r-- | krusader/Search/krsearchdialog.cpp | 6 | ||||
-rw-r--r-- | krusader/Search/krsearchmod.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/krusader/Search/krsearchdialog.cpp b/krusader/Search/krsearchdialog.cpp index 2422f6b..54c2c72 100644 --- a/krusader/Search/krsearchdialog.cpp +++ b/krusader/Search/krsearchdialog.cpp @@ -356,7 +356,7 @@ void KrSearchDialog::found(TQString what, TQString where, KIO::filesize_t size, struct tm* t=localtime((time_t *)&mtime); TQDateTime tmp(TQDate(t->tm_year+1900, t->tm_mon+1, t->tm_mday), TQTime(t->tm_hour, t->tm_min)); ResultListViewItem *it =new ResultListViewItem(resultsList, what, - where.tqreplace(TQRegExp("\\\\"),"#"), size, tmp, perm); + where.replace(TQRegExp("\\\\"),"#"), size, tmp, perm); TQString totals = TQString(i18n("Found %1 matches.")).tqarg(resultsList->childCount()); foundLabel->setText(totals); @@ -445,8 +445,8 @@ void KrSearchDialog::resultClicked(TQListViewItem* i) { if (!it->foundText().isEmpty()) { // ugly hack: find the <b> and </b> in the text, then // use it to set the are which we don't want squeezed - int idx = it->foundText().tqfind("<b>")-4; // take "<qt>" into account - int length = it->foundText().tqfind("</b>")-idx+4; + int idx = it->foundText().find("<b>")-4; // take "<qt>" into account + int length = it->foundText().find("</b>")-idx+4; foundTextLabel->setText(it->foundText(), idx, length); } } diff --git a/krusader/Search/krsearchmod.cpp b/krusader/Search/krsearchmod.cpp index 9d42662..c919bc3 100644 --- a/krusader/Search/krsearchmod.cpp +++ b/krusader/Search/krsearchmod.cpp @@ -106,11 +106,11 @@ void KRSearchMod::scanURL( KURL url ) if( stopSearch ) return; if( query->isExcluded( urlToCheck ) ) { - if( !query->searchInDirs().tqcontains( urlToCheck ) ) + if( !query->searchInDirs().contains( urlToCheck ) ) continue; } - if( scannedUrls.tqcontains( urlToCheck ) ) + if( scannedUrls.contains( urlToCheck ) ) continue; scannedUrls.push( urlToCheck ); @@ -164,7 +164,7 @@ void KRSearchMod::scanLocalDir( KURL urlToScan ) if ( query->searchInArchives() ) { TQString type = mime.right( 4 ); - if ( mime.tqcontains( "-rar" ) ) type = "-rar"; + if ( mime.contains( "-rar" ) ) type = "-rar"; if ( KRarcHandler::arcSupported( type ) ) { |