From 3dc5583024994425d0f3bcb120fb7dd8fc9693ac Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: [PATCH] rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kgtk-qt3@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- qt3/kqt3.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qt3/kqt3.cpp b/qt3/kqt3.cpp index 13b5ca1..660a6ce 100644 --- a/qt3/kqt3.cpp +++ b/qt3/kqt3.cpp @@ -146,8 +146,8 @@ static TQString qt2KdeFilter(const TQString &f) for(; it!=end; ++it) { - int ob=(*it).tqfindRev('('), - cb=(*it).tqfindRev(')'); + int ob=(*it).findRev('('), + cb=(*it).findRev(')'); if(-1!=cb && ob0 && + if(-1!=(pos=(*it).find(*sel)) && pos>0 && ('('==(*it)[pos-1] || ' '==(*it)[pos-1]) && (*it).length()>=sel->length()+pos && (')'==(*it)[pos+sel->length()] || ' '==(*it)[pos+sel->length()])) @@ -215,7 +215,7 @@ static const TQString getFilters(TQFileDialog *dlg, bool scribusSave=false) if(i) str << ";;"; - if(scribusSave && -1!=dlg->d->types->text(i).tqfind("(*.sla *.sla.gz *.scd *scd.gz)")) + if(scribusSave && -1!=dlg->d->types->text(i).find("(*.sla *.sla.gz *.scd *scd.gz)")) str << "Compressed Documents (*.sla.gz *scd.gz);;Documents (*.sla *.scd)"; else str << dlg->d->types->text(i); @@ -242,7 +242,7 @@ static const TQString getFilters(TQFileDialog *dlg, bool scribusSave=false) if(i) str << ";;"; - if(scribusSave && -1!=types->text(i).tqfind("(*.sla *.sla.gz *.scd *scd.gz)")) + if(scribusSave && -1!=types->text(i).find("(*.sla *.sla.gz *.scd *scd.gz)")) str << "Compressed Documents (*.sla.gz *scd.gz);;Documents (*.sla *.scd)"; else str << types->text(i); @@ -281,7 +281,7 @@ static TQString getDir(const TQString &f) { TQString d(f); - int slashPos=d.tqfindRev('/'); + int slashPos=d.findRev('/'); if(slashPos!=-1) d.remove(slashPos+1, d.length()); @@ -474,7 +474,7 @@ static void storeLastDir(const TQString &f) { lastDir=f; - int slashPos(lastDir.tqfindRev('/')); + int slashPos(lastDir.findRev('/')); if(slashPos!=-1) lastDir.remove(slashPos+1, lastDir.length()); @@ -559,7 +559,7 @@ static TQString getFile(const TQString &f) { TQString d(f); - int slashPos=d.tqfindRev('/'); + int slashPos=d.findRev('/'); if(slashPos!=-1) d.remove(0, slashPos+1);