diff options
Diffstat (limited to 'kimagemapeditor/qextfileinfo.cpp')
-rw-r--r-- | kimagemapeditor/qextfileinfo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kimagemapeditor/qextfileinfo.cpp b/kimagemapeditor/qextfileinfo.cpp index 072a854e..c3aad2a7 100644 --- a/kimagemapeditor/qextfileinfo.cpp +++ b/kimagemapeditor/qextfileinfo.cpp @@ -52,8 +52,8 @@ KURL QExtFileInfo::toRelative(const KURL& urlToConvert,const KURL& baseURL) int pos1=0; for (;;) { - pos=path.tqfind("/"); - pos1=basePath.tqfind("/"); + pos=path.find("/"); + pos1=basePath.find("/"); if ( pos<0 || pos1<0 ) break; if ( path.left(pos+1 ) == basePath.left(pos1+1) ) { @@ -65,7 +65,7 @@ KURL QExtFileInfo::toRelative(const KURL& urlToConvert,const KURL& baseURL) }; if ( basePath == "/" ) basePath=""; - int level = basePath.tqcontains("/"); + int level = basePath.contains("/"); for (int i=0; i<level; i++) { path="../"+path; @@ -87,11 +87,11 @@ KURL QExtFileInfo::toAbsolute(const KURL& urlToConvert,const KURL& baseURL) int pos; TQString cutname = urlToConvert.path(); TQString cutdir = baseURL.path(1); - while ( (pos = cutname.tqfind("../")) >=0 ) + while ( (pos = cutname.find("../")) >=0 ) { cutname.remove( 0, pos+3 ); cutdir.remove( cutdir.length()-1, 1 ); - cutdir.remove( cutdir.tqfindRev('/')+1 , 1000); + cutdir.remove( cutdir.findRev('/')+1 , 1000); } resultURL.setPath(TQDir::cleanDirPath(cutdir+cutname)); } |