summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit3dc5583024994425d0f3bcb120fb7dd8fc9693ac (patch)
tree1dc682a84365431c34465254a4c88e08053c8657
parent3f72ed451f4da2c8926467744f44dcab3e1d7af1 (diff)
downloadkgtk-qt3-3dc55830.tar.gz
kgtk-qt3-3dc55830.zip
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
-rw-r--r--qt3/kqt3.cpp16
1 files 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 && ob<cb)
{
@@ -172,7 +172,7 @@ static void kde2TQtFilter(const TQString &orig, TQString *sel)
int pos;
for(; it!=end; ++it)
- if(-1!=(pos=(*it).tqfind(*sel)) && pos>0 &&
+ 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);