From 627b091fad9df13695f249588e8a58f524eda0fa 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/kdeaddons@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- atlantikdesigner/designer/designer.cpp | 10 ++-- atlantikdesigner/designer/editor.cpp | 2 +- kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp | 2 +- kate/cppsymbolviewer/cpp_parser.cpp | 54 +++++++++++----------- kate/cppsymbolviewer/tcl_parser.cpp | 4 +- kate/filetemplates/plugin/filetemplates.cpp | 32 ++++++------- kate/filetemplates/plugin/filetemplates.h | 2 +- kate/filetemplates/plugin/katetemplate.xml | 2 +- .../templates/language.xml.katetemplate | 2 +- kate/htmltools/plugin_katehtmltools.cpp | 2 +- kate/insertcommand/plugin_kateinsertcommand.cpp | 4 +- kate/insertcommand/plugin_kateinsertcommand.h | 2 +- kate/kjswrapper/bindings.cpp | 2 +- kate/kpybrowser/kpybrowser.cpp | 10 ++-- kate/kpybrowser/pybrowse_part.cpp | 4 +- kate/make/plugin_katemake.cpp | 12 ++--- kate/modeline/ModelinePlugin.cpp | 10 ++-- kate/openheader/plugin_kateopenheader.cpp | 4 +- kate/snippets/plugin_katesnippets.cpp | 6 +-- kate/textfilter/plugin_katetextfilter.cpp | 6 +-- kate/textfilter/plugin_katetextfilter.h | 2 +- kate/xmlcheck/plugin_katexmlcheck.cpp | 12 ++--- kate/xmltools/kde-docbook.dtd.xml | 2 +- kate/xmltools/plugin_katexmltools.cpp | 14 +++--- kate/xmltools/plugin_katexmltools.h | 2 +- kate/xmltools/pseudo_dtd.cpp | 22 ++++----- kate/xmltools/pseudo_dtd.h | 2 +- kfile-plugins/cert/kfile_cert.cpp | 4 +- kfile-plugins/html/kfile_html.cpp | 2 +- kfile-plugins/lnk/lnkforward.cpp | 2 +- kfile-plugins/mhtml/kfile_mhtml.cpp | 28 +++++------ kicker-applets/kolourpicker/kolourpicker.cpp | 10 ++-- kicker-applets/ktimemon/timemon.cc | 2 +- kicker-applets/math/parser.cpp | 6 +-- kicker-applets/mediacontrol/amarokInterface.cpp | 8 ++-- kicker-applets/mediacontrol/jukInterface.cpp | 6 +-- kicker-applets/mediacontrol/mediacontrol.cpp | 2 +- kicker-applets/mediacontrol/mediacontrolconfig.cpp | 4 +- kicker-applets/mediacontrol/mpdInterface.cpp | 2 +- kicker-applets/mediacontrol/noatunInterface.cpp | 6 +-- konq-plugins/adblock/adblock.cpp | 4 +- konq-plugins/akregator/akregatorplugin.cpp | 10 ++-- konq-plugins/akregator/konqfeedicon.cpp | 2 +- konq-plugins/arkplugin/arkplugin.cpp | 10 ++-- konq-plugins/dirfilter/dirfilterplugin.cpp | 6 +-- konq-plugins/domtreeviewer/domtreecommands.cpp | 4 +- konq-plugins/domtreeviewer/domtreeview.cpp | 4 +- konq-plugins/fsview/fsview.cpp | 4 +- konq-plugins/fsview/treemap.cpp | 24 +++++----- konq-plugins/fsview/treemap.h | 2 +- konq-plugins/imagerotation/exif.py | 2 +- konq-plugins/kuick/kdirmenu.cpp | 4 +- konq-plugins/kuick/kmetamenu.cpp | 4 +- konq-plugins/kuick/kuick_plugin.cpp | 2 +- konq-plugins/rellinks/plugin_rellinks.cpp | 8 ++-- konq-plugins/rsync/rsyncplugin.cpp | 46 +++++++++--------- konq-plugins/searchbar/searchbar.cpp | 18 ++++---- konq-plugins/sidebar/mediaplayer/mediawidget.cpp | 2 +- konq-plugins/sidebar/metabar/Doxyfile | 2 +- konq-plugins/sidebar/metabar/src/configdialog.cpp | 6 +-- konq-plugins/sidebar/metabar/src/defaultplugin.cpp | 2 +- konq-plugins/sidebar/metabar/src/httpplugin.cpp | 8 ++-- konq-plugins/sidebar/metabar/src/metabarwidget.cpp | 2 +- konq-plugins/sidebar/metabar/src/serviceloader.cpp | 8 ++-- .../sidebar/newsticker/nsstacktabwidget.cpp | 8 ++-- konq-plugins/sidebar/newsticker/sidebar_news.cpp | 2 +- konq-plugins/uachanger/uachangerplugin.cpp | 16 +++---- konq-plugins/validators/plugin_validators.cpp | 2 +- konq-plugins/webarchiver/archivedialog.cpp | 12 ++--- konq-plugins/webarchiver/plugin_webarchiver.cpp | 10 ++-- ksig/ksig.spec | 4 +- ksig/siglistviewitem.cpp | 2 +- noatun-plugins/dub/dub/dub.cpp | 6 +-- noatun-plugins/dub/dub/dub.h | 2 +- noatun-plugins/dub/dub/dubplaylistitem.cpp | 6 +-- noatun-plugins/ffrs/ffrs.cpp | 4 +- noatun-plugins/luckytag/parsedmp3filename.cpp | 28 +++++------ noatun-plugins/lyrics/lyrics.cpp | 8 ++-- noatun-plugins/nexscope/gui.cpp | 2 +- noatun-plugins/noatunmadness/madness.cpp | 2 +- noatun-plugins/oblique/base.cpp | 10 ++-- noatun-plugins/oblique/base.h | 4 +- noatun-plugins/oblique/cmodule.cpp | 8 ++-- noatun-plugins/oblique/kdatacollection.cpp | 4 +- noatun-plugins/oblique/oblique.cpp | 2 +- noatun-plugins/oblique/query.cpp | 10 ++-- noatun-plugins/oblique/selector.cpp | 4 +- noatun-plugins/oblique/tree.cpp | 26 +++++------ noatun-plugins/oblique/tree.h | 6 +-- noatun-plugins/tippercanoe/synaescope.cpp | 2 +- 90 files changed, 342 insertions(+), 342 deletions(-) diff --git a/atlantikdesigner/designer/designer.cpp b/atlantikdesigner/designer/designer.cpp index 7ce7b89..744840c 100644 --- a/atlantikdesigner/designer/designer.cpp +++ b/atlantikdesigner/designer/designer.cpp @@ -303,7 +303,7 @@ void AtlanticDesigner::openFile(const TQString &filename) } // this for outside-of-[]-settings - int eqSign = s.tqfind("="); + int eqSign = s.find("="); if (eqSign >= 0) { TQString key = s.left(eqSign); @@ -344,8 +344,8 @@ void AtlanticDesigner::openFile(const TQString &filename) continue; } - name = s.left(s.tqfind("]")); - name = name.right(name.length() - name.tqfind("[") - 1); + name = s.left(s.find("]")); + name = name.right(name.length() - name.find("[") - 1); if (name.isEmpty()) name = i18n("No Name"); @@ -380,7 +380,7 @@ void AtlanticDesigner::openFile(const TQString &filename) if (s.left(1) == "[" || s.left(1) == "<") break; - int eqSign = s.tqfind("="); + int eqSign = s.find("="); if (eqSign < 0) continue; @@ -658,7 +658,7 @@ void AtlanticDesigner::save() for (ConfigEstateGroupList::Iterator it = groups.begin(); it != groups.end(); ++it) { - if (writtenGroups.tqcontains((*it).name()) > 0) + if (writtenGroups.contains((*it).name()) > 0) continue; if ((*it).name() == "Default") diff --git a/atlantikdesigner/designer/editor.cpp b/atlantikdesigner/designer/editor.cpp index 407e03d..4cf95ed 100644 --- a/atlantikdesigner/designer/editor.cpp +++ b/atlantikdesigner/designer/editor.cpp @@ -784,7 +784,7 @@ void CardView::selected(int i) newChooseWidget->show(); - newChooseWidget->typeChanged(types.tqfindIndex(*it)); + newChooseWidget->typeChanged(types.findIndex(*it)); newChooseWidget->valueChanged(*vit); newChooseWidget->estateChanged(*vit); diff --git a/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp b/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp index 9cc67a8..bc69af0 100644 --- a/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp +++ b/kaddressbook-plugins/xxports/gmx/gmx_xxport.cpp @@ -279,7 +279,7 @@ void GMXXXPort::doExport( TQFile *fp, const KABC::AddresseeList &list ) << addr->familyName() << DELIM // Lastname << addr->title() << DELIM // Title << dateString(addr->birthday()) << DELIM // Birthday - << addr->note() /*.tqreplace('\n',"\r\n")*/ << DELIM // Comments + << addr->note() /*.replace('\n',"\r\n")*/ << DELIM // Comments << dateString(addr->revision()) << DELIM // Change_date << "1##0\n"; // tqStatus, Address_link_id, Categories } diff --git a/kate/cppsymbolviewer/cpp_parser.cpp b/kate/cppsymbolviewer/cpp_parser.cpp index c99d455..b66c7fc 100644 --- a/kate/cppsymbolviewer/cpp_parser.cpp +++ b/kate/cppsymbolviewer/cpp_parser.cpp @@ -67,21 +67,21 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) cl = cl.stripWhiteSpace(); func_close = 0; if(cl.at(0) == '/' && cl.at(1) == '/') continue; - if(cl.tqfind("/*") == 0 && (cl.tqfind("*/") == ((signed)cl.length() - 2)) && graph == 0) continue; // workaround :( - if(cl.tqfind("/*") >= 0 && graph == 0) comment = 1; - if(cl.tqfind("*/") >= 0 && graph == 0) comment = 0; - if(cl.tqfind("#") >= 0 && graph == 0 ) macro = 1; + if(cl.find("/*") == 0 && (cl.find("*/") == ((signed)cl.length() - 2)) && graph == 0) continue; // workaround :( + if(cl.find("/*") >= 0 && graph == 0) comment = 1; + if(cl.find("*/") >= 0 && graph == 0) comment = 0; + if(cl.find("#") >= 0 && graph == 0 ) macro = 1; if (comment != 1) { /* *********************** MACRO PARSING *****************************/ if(macro == 1) { - //macro_pos = cl.tqfind("#"); + //macro_pos = cl.find("#"); for (j = 0; j < cl.length(); j++) { if(cl.at(j)=='/' && cl.at(j+1)=='/') { macro = 4; break; } - if( (uint)cl.tqfind("define") == j && - !((uint)cl.tqfind("defined") == j)) + if( (uint)cl.find("define") == j && + !((uint)cl.find("defined") == j)) { macro = 2; j += 6; // skip the word "define" @@ -99,7 +99,7 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) if(j == cl.length() && macro == 1) macro = 0; if(macro == 4) { - //stripped.tqreplace(0x9, " "); + //stripped.replace(0x9, " "); stripped = stripped.stripWhiteSpace(); if (macro_on == true) { @@ -129,7 +129,7 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) /* ******************************************************************** */ - if ((cl.tqfind("class") >= 0 && graph == 0 && block == 0)) + if ((cl.find("class") >= 0 && graph == 0 && block == 0)) { mclass = 1; for (j = 0; j < cl.length(); j++) @@ -158,19 +158,19 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) } if (mclass == 3) { - if (cl.tqfind('{') >= 0) + if (cl.find('{') >= 0) { - cl = cl.right(cl.tqfind('{')); + cl = cl.right(cl.find('{')); mclass = 4; } } - if(cl.tqfind("(") >= 0 && cl.at(0) != '#' && block == 0 && comment != 2) + if(cl.find("(") >= 0 && cl.at(0) != '#' && block == 0 && comment != 2) { structure = false; block = 1; } - if((cl.tqfind("typedef") >= 0 || cl.tqfind("struct") >= 0) && + if((cl.find("typedef") >= 0 || cl.find("struct") >= 0) && graph == 0 && block == 0) { structure = true; block = 2; stripped = ""; } - //if(cl.tqfind(";") >= 0 && graph == 0) + //if(cl.find(";") >= 0 && graph == 0) // block = 0; if(block > 0 && mclass != 1 ) @@ -216,21 +216,21 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) break; } - if(cl.at(j)=='{' && structure == false && cl.tqfind(";") < 0 || - cl.at(j)=='{' && structure == false && cl.tqfind('}') > (int)j) + if(cl.at(j)=='{' && structure == false && cl.find(";") < 0 || + cl.at(j)=='{' && structure == false && cl.find('}') > (int)j) { - stripped.tqreplace(0x9, " "); + stripped.replace(0x9, " "); if(func_on == true) { if (types_on == false) { - while (stripped.tqfind('(') >= 0) - stripped = stripped.left(stripped.tqfind('(')); - while (stripped.tqfind("::") >= 0) - stripped = stripped.mid(stripped.tqfind("::") + 2); + while (stripped.find('(') >= 0) + stripped = stripped.left(stripped.find('(')); + while (stripped.find("::") >= 0) + stripped = stripped.mid(stripped.find("::") + 2); stripped = stripped.stripWhiteSpace(); - while (stripped.tqfind(0x20) >= 0) - stripped = stripped.mid(stripped.tqfind(0x20, 0) + 1); + while (stripped.find(0x20) >= 0) + stripped = stripped.mid(stripped.find(0x20, 0) + 1); } //kdDebug(13000)<<"Function -- Inserted: "< 0 if (mclass == 4 && block == 0 && func_close == 0) { - if (cl.tqfind('}') >= 0) + if (cl.find('}') >= 0) { - cl = cl.right(cl.tqfind('}')); + cl = cl.right(cl.find('}')); mclass = 0; } } diff --git a/kate/cppsymbolviewer/tcl_parser.cpp b/kate/cppsymbolviewer/tcl_parser.cpp index fca2a5d..3402b67 100644 --- a/kate/cppsymbolviewer/tcl_parser.cpp +++ b/kate/cppsymbolviewer/tcl_parser.cpp @@ -80,8 +80,8 @@ void KatePluginSymbolViewerView::parseTclSymbols(void) { stripped = currline.right(currline.length() - 3); stripped = stripped.simplifyWhiteSpace(); - int fnd = stripped.tqfind(' '); - //fnd = stripped.tqfind(";"); + int fnd = stripped.find(' '); + //fnd = stripped.find(";"); if(fnd > 0) stripped = stripped.left(fnd); if (treeMode) diff --git a/kate/filetemplates/plugin/filetemplates.cpp b/kate/filetemplates/plugin/filetemplates.cpp index 33639ce..2bae5f8 100644 --- a/kate/filetemplates/plugin/filetemplates.cpp +++ b/kate/filetemplates/plugin/filetemplates.cpp @@ -192,7 +192,7 @@ void KateFileTemplates::updateTemplateDirs(const TQString &d) TQString fname = (*it).section( '/', -1 ); // skip if hidden - if ( hidden.tqcontains( fname ) ) + if ( hidden.contains( fname ) ) continue; // Read the first line of the file, to get the group/name @@ -284,7 +284,7 @@ TQStringList KateFileTemplates::groups() for ( uint i = 0; i < m_templates.count(); i++ ) { s = m_templates.at( i )->group; - if ( ! l.tqcontains( s ) ) + if ( ! l.contains( s ) ) l.append( s ); } @@ -332,7 +332,7 @@ void KateFileTemplates::refreshMenu( PluginView *v ) w.prepend( "

" ); if ( ! w.isEmpty() ) - submenus[m_templates.at( i )->group]->tqfindItem( i )->setWhatsThis( w ); + submenus[m_templates.at( i )->group]->findItem( i )->setWhatsThis( w ); } } @@ -412,7 +412,7 @@ void KateFileTemplates::slotOpenTemplate( const KURL &url ) if ( reName.search( tmp ) > -1 ) { docname = reName.cap( 1 ); - docname = docname.tqreplace( "%N", "%1" ); + docname = docname.replace( "%N", "%1" ); doneheader |= 1; } } @@ -458,7 +458,7 @@ void KateFileTemplates::slotOpenTemplate( const KURL &url ) if ( ! isTemplate ) { - int d = filename.tqfindRev('.'); + int d = filename.findRev('.'); docname = i18n("Untitled %1"); if ( d > 0 ) docname += filename.mid( d ); } else if ( docname.isEmpty() ) @@ -467,8 +467,8 @@ void KateFileTemplates::slotOpenTemplate( const KURL &url ) // check for other documents matching this naming scheme, // and do a count before chosing a name for this one TQString p = docname; - p.tqreplace( "%1", "\\d+" ); - p.tqreplace( ".", "\\." ); + p.replace( "%1", "\\d+" ); + p.replace( ".", "\\." ); p.prepend( "^" ); p.append( "$" ); TQRegExp reName( p ); @@ -478,7 +478,7 @@ void KateFileTemplates::slotOpenTemplate( const KURL &url ) if ( ( reName.search ( application()->documentManager()->document( i )->docName() ) > -1 ) ) count++; - if ( docname.tqcontains( "%1" ) ) + if ( docname.contains( "%1" ) ) docname = docname.tqarg( count ); doc->setDocName( docname ); @@ -578,7 +578,7 @@ KateTemplateInfoWidget::KateTemplateInfoWidget( TQWidget *tqparent, TemplateInfo l->setBuddy( leDocumentName ); TQWhatsThis::add( leDocumentName, i18n("

This string will be used to set a name " "for the new document, to display in the title bar and file list.

" - "

If the string tqcontains '%N', that will be replaced with a number " + "

If the string contains '%N', that will be replaced with a number " "increasing with each similarly named file.

For example, if the " "Document Name is 'New shellscript (%N).sh', the first document will be " "named 'New shellscript (1).sh', the second 'New shellscipt (2).sh', and " @@ -908,7 +908,7 @@ void KateTemplateWizard::accept() else suggestion = kti->leTemplate->text(); - suggestion.tqreplace(" ", ""); + suggestion.replace(" ", ""); if ( ! suggestion.endsWith(".katetemplate") ) suggestion.append(".katetemplate"); @@ -1005,16 +1005,16 @@ void KateTemplateWizard::accept() { // 3) if the file is not already a template, escape any "%" and "^" in it, // and try do do some replacement of the authors username, name and email. - tmp.tqreplace( TQRegExp("%(?=\\{[^}]+\\})"), "\\%" ); - tmp.tqreplace( TQRegExp("\\$(?=\\{[^}]+\\})"), "\\$" ); - //tmp.tqreplace( "^", "\\^" ); + tmp.replace( TQRegExp("%(?=\\{[^}]+\\})"), "\\%" ); + tmp.replace( TQRegExp("\\$(?=\\{[^}]+\\})"), "\\$" ); + //tmp.replace( "^", "\\^" ); if ( cbRRealname->isChecked() && ! sFullname.isEmpty() ) - tmp.tqreplace( sFullname, "%{realname}" ); + tmp.replace( sFullname, "%{realname}" ); if ( cbREmail->isChecked() && ! sEmail.isEmpty() ) - tmp.tqreplace( sEmail, "%{email}" ); + tmp.replace( sEmail, "%{email}" ); } str += tmp; @@ -1249,6 +1249,6 @@ void KateTemplateManager::slotDownload() //END KateTemplateManager -// kate: space-indent on; indent-width 2; tqreplace-tabs on; +// kate: space-indent on; indent-width 2; replace-tabs on; #include "filetemplates.moc" diff --git a/kate/filetemplates/plugin/filetemplates.h b/kate/filetemplates/plugin/filetemplates.h index e6fef30..ec3134c 100644 --- a/kate/filetemplates/plugin/filetemplates.h +++ b/kate/filetemplates/plugin/filetemplates.h @@ -260,4 +260,4 @@ class KateTemplateManager : public TQWidget }; #endif // _PLUGIN_KATE_FILETEMPLATES_H_ -// kate: space-indent on; indent-width 2; tqreplace-tabs on; +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/kate/filetemplates/plugin/katetemplate.xml b/kate/filetemplates/plugin/katetemplate.xml index 78647d4..0748481 100644 --- a/kate/filetemplates/plugin/katetemplate.xml +++ b/kate/filetemplates/plugin/katetemplate.xml @@ -84,4 +84,4 @@ - + diff --git a/kate/filetemplates/templates/language.xml.katetemplate b/kate/filetemplates/templates/language.xml.katetemplate index 65d677a..420ba84 100644 --- a/kate/filetemplates/templates/language.xml.katetemplate +++ b/kate/filetemplates/templates/language.xml.katetemplate @@ -57,4 +57,4 @@ katetemplate: Description=This template will create the basics of a kate highlig --> - + diff --git a/kate/htmltools/plugin_katehtmltools.cpp b/kate/htmltools/plugin_katehtmltools.cpp index a71c91c..ba7c530 100644 --- a/kate/htmltools/plugin_katehtmltools.cpp +++ b/kate/htmltools/plugin_katehtmltools.cpp @@ -142,7 +142,7 @@ void PluginKateHtmlTools::slipInHTMLtag (Kate::View & view, TQString text) // // when we try to reselect. TODO: fix those bugs, and we can // un-break this if... - if (preDeleteLine == line && -1 == marked.tqfind ('\n')) + if (preDeleteLine == line && -1 == marked.find ('\n')) if (preDeleteLine == line && preDeleteCol == col) { view.setCursorPosition (line, col + pre.length () + marked.length () - 1); diff --git a/kate/insertcommand/plugin_kateinsertcommand.cpp b/kate/insertcommand/plugin_kateinsertcommand.cpp index 2b8e80e..74f857e 100644 --- a/kate/insertcommand/plugin_kateinsertcommand.cpp +++ b/kate/insertcommand/plugin_kateinsertcommand.cpp @@ -173,7 +173,7 @@ void PluginKateInsertCommand::slotInsertCommand() sh->start( KProcess::NotifyOnExit, KProcess::All ); // add command to history - if ( cmdhist.tqcontains( d->command() ) ) { + if ( cmdhist.contains( d->command() ) ) { cmdhist.remove( d->command() ); } cmdhist.prepend( d->command() ); @@ -414,4 +414,4 @@ void InsertCommandConfigPage::apply() emit configPageApplyRequest( this ); } //END InsertCommandConfigPage -// kate: space-indent on; indent-width 2; tqreplace-tabs on; +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/kate/insertcommand/plugin_kateinsertcommand.h b/kate/insertcommand/plugin_kateinsertcommand.h index 5765a9b..9a33cbe 100644 --- a/kate/insertcommand/plugin_kateinsertcommand.h +++ b/kate/insertcommand/plugin_kateinsertcommand.h @@ -170,4 +170,4 @@ class InsertCommandConfigPage : public Kate::PluginConfigPage }; #endif // _PLUGIN_KATE_INSERT_COMMAND_H_ -// kate: space-indent on; indent-width 2; tqreplace-tabs on; +// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/kate/kjswrapper/bindings.cpp b/kate/kjswrapper/bindings.cpp index aeddbbc..bf6ec28 100644 --- a/kate/kjswrapper/bindings.cpp +++ b/kate/kjswrapper/bindings.cpp @@ -390,7 +390,7 @@ void Kate::JS::RefCountedObjectDict::decRef() { } KJS::Object Kate::JS::RefCountedObjectDict::jsObject(KJS::ExecState *exec, TQObject *obj, KJSEmbed::JSObjectProxy *proxy) { - ObjectEntry *oe=tqfind(obj); + ObjectEntry *oe=find(obj); if (oe==0) { oe=new ObjectEntry; oe->obj=proxy->part()->factory()->createProxy(exec,obj,proxy); diff --git a/kate/kpybrowser/kpybrowser.cpp b/kate/kpybrowser/kpybrowser.cpp index 483a677..e69205f 100644 --- a/kate/kpybrowser/kpybrowser.cpp +++ b/kate/kpybrowser/kpybrowser.cpp @@ -290,7 +290,7 @@ KPyBrowser::parseText (TQString & pytext) //strip out the beginning class and ending colon class_sig = line->stripWhiteSpace ().mid (6); class_sig = class_sig.left (class_sig.length () - 1); - paren_i = class_sig.tqfind ("("); + paren_i = class_sig.find ("("); class_name = class_sig.left (paren_i); last_class_node = @@ -305,8 +305,8 @@ KPyBrowser::parseText (TQString & pytext) { //strip off the leading def and the ending colon method_sig = line->stripWhiteSpace ().mid (4); - method_sig = method_sig.left (method_sig.tqfind (":")); - paren_i = method_sig.tqfind ("("); + method_sig = method_sig.left (method_sig.find (":")); + paren_i = method_sig.find ("("); method_name = method_sig.left (paren_i); last_method_node = new PyBrowseNode (last_class_node, method_name, method_sig, @@ -320,8 +320,8 @@ KPyBrowser::parseText (TQString & pytext) { //KMessageBox::information(this, *line, TQString("Found function on line %1").tqarg(line_no)); function_sig = line->stripWhiteSpace ().mid (4); - function_sig = function_sig.left (function_sig.tqfind (":")); - paren_i = function_sig.tqfind ("("); + function_sig = function_sig.left (function_sig.find (":")); + paren_i = function_sig.find ("("); function_name = function_sig.left (paren_i); last_function_node = new PyBrowseNode (function_root, function_name, function_sig, diff --git a/kate/kpybrowser/pybrowse_part.cpp b/kate/kpybrowser/pybrowse_part.cpp index bd9f791..1cff538 100644 --- a/kate/kpybrowser/pybrowse_part.cpp +++ b/kate/kpybrowser/pybrowse_part.cpp @@ -82,7 +82,7 @@ void PluginViewPyBrowse::slotSelected(TQString name, int line) done = 1; if (forward_line < numlines) { - if (doc->textLine(forward_line).tqfind(name) > -1) + if (doc->textLine(forward_line).find(name) > -1) { apiline = forward_line; break; @@ -92,7 +92,7 @@ void PluginViewPyBrowse::slotSelected(TQString name, int line) } if (backward_line > -1) { - if (doc->textLine(backward_line).tqfind(name) > -1) + if (doc->textLine(backward_line).find(name) > -1) { apiline = backward_line; break; diff --git a/kate/make/plugin_katemake.cpp b/kate/make/plugin_katemake.cpp index 73f61cb..f61cfe0 100644 --- a/kate/make/plugin_katemake.cpp +++ b/kate/make/plugin_katemake.cpp @@ -132,7 +132,7 @@ public: (lineno > 0 ? TQString::number(lineno) : TQString()), message) { - m_isError = !message.tqcontains(TQString::tqfromLatin1("warning")); + m_isError = !message.contains(TQString::tqfromLatin1("warning")); m_lineno = lineno; m_serial = s_serial++; } @@ -403,21 +403,21 @@ void PluginKateMakeView::processLine(const TQString &l) kdDebug() << "Got line " << l ; - if (!filenameDetector && l.tqfind(source_prefix)!=0) + if (!filenameDetector && l.find(source_prefix)!=0) { /* ErrorMessage *e = */ (void) new ErrorMessage(this,l); return; } - if (filenameDetector && l.tqfind(*filenameDetector)<0) + if (filenameDetector && l.find(*filenameDetector)<0) { ErrorMessage *e = new ErrorMessage(this,l); kdDebug() << "Got message(1) #" << e->serial() << endl; return; } - int ofs1 = l.tqfind(':'); - int ofs2 = l.tqfind(':',ofs1+1); + int ofs1 = l.find(':'); + int ofs2 = l.find(':',ofs1+1); // TQString m = l.mid(ofs2+1); m.remove('\n'); @@ -452,7 +452,7 @@ void PluginKateMakeView::slotReceivedProcStderr(KProcess *, char *result, int le output_line += l; int nl_p = -1; - while ((nl_p = output_line.tqfind('\n')) > 1) + while ((nl_p = output_line.find('\n')) > 1) { processLine(output_line.left(nl_p+1)); output_line.remove(0,nl_p+1); diff --git a/kate/modeline/ModelinePlugin.cpp b/kate/modeline/ModelinePlugin.cpp index e3d22a1..3cf73c4 100644 --- a/kate/modeline/ModelinePlugin.cpp +++ b/kate/modeline/ModelinePlugin.cpp @@ -97,25 +97,25 @@ void ModelinePlugin::applyModeline() options = vim2.cap(1); } else if( doc->searchText( 0, 0, vim1, &foundAtLine, &foundAtCol, &matchLen ) ) { options = vim1.cap(1); - options.tqreplace( TQRegExp( ":" ), " " ); + options.replace( TQRegExp( ":" ), " " ); } uint configFlags = doc->configFlags(); kdDebug() << "Found modeline: " << options << endl; - if( options.tqfind( TQRegExp( "\\bnoet\\b" ) ) >= 0 ) { + if( options.find( TQRegExp( "\\bnoet\\b" ) ) >= 0 ) { kdDebug() << "Clearing replace tabs" << endl; configFlags &= ~Kate::Document::cfReplaceTabs; - } else if( options.tqfind( TQRegExp( "\\bet\\b" ) ) >= 0 ) { + } else if( options.find( TQRegExp( "\\bet\\b" ) ) >= 0 ) { kdDebug() << "Setting replace tabs" << endl; configFlags |= Kate::Document::cfReplaceTabs; } TQRegExp ts( "ts=(\\d+)" ); - if( options.tqfind( ts ) >= 0 ) { + if( options.find( ts ) >= 0 ) { uint tabWidth = ts.cap(1).toUInt(); kdDebug() << "Setting tab width " << tabWidth << endl; view->setTabWidth( tabWidth ); } TQRegExp tw( "tw=(\\d+)" ); - if( options.tqfind( tw ) >= 0 ) { + if( options.find( tw ) >= 0 ) { uint textWidth = tw.cap(1).toUInt(); kdDebug() << "Setting text width " << textWidth << endl; doc->setWordWrap( true ); diff --git a/kate/openheader/plugin_kateopenheader.cpp b/kate/openheader/plugin_kateopenheader.cpp index 15dbb77..eade8e8 100644 --- a/kate/openheader/plugin_kateopenheader.cpp +++ b/kate/openheader/plugin_kateopenheader.cpp @@ -91,9 +91,9 @@ void PluginKateOpenHeader::slotOpenHeader () TQStringList headers( TQStringList() << "h" << "H" << "hh" << "hpp" ); TQStringList sources( TQStringList() << "c" << "cpp" << "cc" << "cp" << "cxx" ); - if( sources.tqfind( extension ) != sources.end() ) { + if( sources.find( extension ) != sources.end() ) { tryOpen( url, headers ); - } else if ( headers.tqfind( extension ) != headers.end() ) { + } else if ( headers.find( extension ) != headers.end() ) { tryOpen( url, sources ); } } diff --git a/kate/snippets/plugin_katesnippets.cpp b/kate/snippets/plugin_katesnippets.cpp index 8e0d6cb..018faf8 100644 --- a/kate/snippets/plugin_katesnippets.cpp +++ b/kate/snippets/plugin_katesnippets.cpp @@ -170,9 +170,9 @@ void KatePluginSnippetsView::slot_lvSnippetsClicked (TQListViewItem * item) { kv->keyDelete(); } - sText.tqreplace( TQRegExp(""), sSelection ); - sText.tqreplace( TQRegExp(""), TQDate::tqcurrentDate().toString(Qt::LocalDate) ); - sText.tqreplace( TQRegExp("