summaryrefslogtreecommitdiffstats
path: root/qt3
diff options
context:
space:
mode:
Diffstat (limited to 'qt3')
-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);