|
|
|
@ -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);
|
|
|
|
|