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 --- kdict/dict.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kdict/dict.cpp') diff --git a/kdict/dict.cpp b/kdict/dict.cpp index 11d5e12b..8e55061c 100644 --- a/kdict/dict.cpp +++ b/kdict/dict.cpp @@ -215,7 +215,7 @@ void DictAsyncClient::define() TQString lastDb; TQStringList::iterator it; for (it = job->matches.begin(); it != job->matches.end(); ++it) { - int pos = (*it).tqfind(' '); + int pos = (*it).find(' '); if (pos != -1) { if (lastDb != (*it).left(pos)) { if (lastDb.length() > 0) @@ -430,7 +430,7 @@ bool DictAsyncClient::getDefinitions() } resultAppend("

\n"); - if (hashList.tqfind(context.hexDigest())>=0) // duplicate?? + if (hashList.find(context.hexDigest())>=0) // duplicate?? job->result.truncate(oldResPos); // delete the whole definition else { hashList.append(context.hexDigest()); @@ -1521,7 +1521,7 @@ JobData* DictInterface::generateQuery(JobData::QueryType type, TQString query) return 0L; if (query.length()>300) // shorten if necessary query.truncate(300); - query = query.tqreplace(TQRegExp("[\"\\]"), ""); // remove remaining illegal chars... + query = query.replace(TQRegExp("[\"\\]"), ""); // remove remaining illegal chars... if (query.isEmpty()) return 0L; @@ -1537,7 +1537,7 @@ JobData* DictInterface::generateQuery(JobData::QueryType type, TQString query) if ((global->currentDatabase > 0)&& // database set (global->currentDatabase < global->databaseSets.count()+1)) { for (int i = 0;i<(int)global->serverDatabases.count();i++) - if ((global->databaseSets.at(global->currentDatabase-1))->tqfindIndex(global->serverDatabases[i])>0) + if ((global->databaseSets.at(global->currentDatabase-1))->findIndex(global->serverDatabases[i])>0) newjob->databases.append(global->serverDatabases[i].utf8().data()); if (newjob->databases.count()==0) { KMessageBox::sorry(global->topLevel, i18n("Please select at least one database.")); -- cgit v1.2.1