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 | 9a3f0aacd44fb866833ebcb852df3cd31475cb33 (patch) | |
tree | 9f699684624f4e78e13e7dd2393a103cc6fa8274 /kfind/kquery.cpp | |
parent | 341ad02235b9c85cd31782225181ed475b74eaa3 (diff) | |
download | tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.tar.gz tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfind/kquery.cpp')
-rw-r--r-- | kfind/kquery.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kfind/kquery.cpp b/kfind/kquery.cpp index 4fd874c96..4231f1aab 100644 --- a/kfind/kquery.cpp +++ b/kfind/kquery.cpp @@ -242,7 +242,7 @@ void KQuery::processQuery( KFileItem* file) return; break; default: - if (!m_mimetype.isEmpty() && !m_mimetype.tqcontains(file->mimetype())) + if (!m_mimetype.isEmpty() && !m_mimetype.contains(file->mimetype())) return; } @@ -270,7 +270,7 @@ void KQuery::processQuery( KFileItem* file) continue; metaitem=metadatas.item(*it); strmetakeycontent=metaitem.string(); - if(strmetakeycontent.tqfind(m_metainfo)!=-1) + if(strmetakeycontent.find(m_metainfo)!=-1) { foundmeta=true; break; @@ -285,7 +285,7 @@ void KQuery::processQuery( KFileItem* file) if (!m_context.isEmpty()) { - if( !m_search_binary && ignore_mimetypes.tqfindIndex(file->mimetype()) != -1 ) { + if( !m_search_binary && ignore_mimetypes.findIndex(file->mimetype()) != -1 ) { kdDebug() << "ignoring, mime type is in exclusion list: " << file->url() << endl; return; } @@ -303,8 +303,8 @@ void KQuery::processQuery( KFileItem* file) TQByteArray zippedXmlFileContent; // KWord's and OpenOffice.org's files are zipped... - if( ooo_mimetypes.tqfindIndex(file->mimetype()) != -1 || - koffice_mimetypes.tqfindIndex(file->mimetype()) != -1 ) + if( ooo_mimetypes.findIndex(file->mimetype()) != -1 || + koffice_mimetypes.findIndex(file->mimetype()) != -1 ) { KZip zipfile(file->url().path()); KZipFileEntry *zipfileEntry; @@ -313,7 +313,7 @@ void KQuery::processQuery( KFileItem* file) { const KArchiveDirectory *zipfileContent = zipfile.directory(); - if( koffice_mimetypes.tqfindIndex(file->mimetype()) != -1 ) + if( koffice_mimetypes.findIndex(file->mimetype()) != -1 ) zipfileEntry = (KZipFileEntry*)zipfileContent->entry("maindoc.xml"); else zipfileEntry = (KZipFileEntry*)zipfileContent->entry("content.xml"); //for OpenOffice.org @@ -359,7 +359,7 @@ void KQuery::processQuery( KFileItem* file) if (str.isNull()) break; if(isZippedOfficeDocument) - str.tqreplace(xmlTags, ""); + str.replace(xmlTags, ""); if (m_regexpForContent) { @@ -373,7 +373,7 @@ void KQuery::processQuery( KFileItem* file) else { if ((!str.isNull()) && (!m_context.isNull())) { - if (str.tqfind(m_context, 0, m_casesensitive) != -1) + if (str.find(m_context, 0, m_casesensitive) != -1) { matchingLine=TQString::number(matchingLineNumber)+": "+str; found = true; @@ -458,7 +458,7 @@ void KQuery::setRegExp(const TQString ®exp, bool caseSensitive) // m_regexpsContainsGlobs.clear(); for ( TQStringList::ConstIterator it = strList.begin(); it != strList.end(); ++it ) { regExp = new TQRegExp((*it),caseSensitive,true); -// m_regexpsContainsGlobs.append(regExp->pattern().tqcontains(globChars)); +// m_regexpsContainsGlobs.append(regExp->pattern().contains(globChars)); m_regexps.append(regExp); } } |