diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 33881ea4441221b1ca0789a72c4c7249d923a0df (patch) | |
tree | ffe5603da373bb346bb29c8e0f533776f66560a5 /libk3b/core/k3bglobals.cpp | |
parent | 6d99e1e138ae5aafc10f14682c48221bf563152e (diff) | |
download | k3b-33881ea4441221b1ca0789a72c4c7249d923a0df.tar.gz k3b-33881ea4441221b1ca0789a72c4c7249d923a0df.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libk3b/core/k3bglobals.cpp')
-rw-r--r-- | libk3b/core/k3bglobals.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libk3b/core/k3bglobals.cpp b/libk3b/core/k3bglobals.cpp index 401950e..1d91cd3 100644 --- a/libk3b/core/k3bglobals.cpp +++ b/libk3b/core/k3bglobals.cpp @@ -195,7 +195,7 @@ TQString K3b::parentDir( const TQString& path ) if( path[path.length()-1] == '/' ) tqparent.truncate( tqparent.length()-1 ); - int pos = tqparent.tqfindRev( '/' ); + int pos = tqparent.findRev( '/' ); if( pos >= 0 ) tqparent.truncate( pos+1 ); else // relative path, do anything... @@ -313,7 +313,7 @@ TQString K3b::cutFilename( const TQString& name, unsigned int len ) TQString ret = name; // determine extension (we think of an extension to be at most 5 chars in length) - int pos = name.tqfind( '.', -6 ); + int pos = name.find( '.', -6 ); if( pos > 0 ) len -= (name.length() - pos); @@ -332,7 +332,7 @@ TQString K3b::cutFilename( const TQString& name, unsigned int len ) TQString K3b::removeFilenameExtension( const TQString& name ) { TQString v = name; - int dotpos = v.tqfindRev( '.' ); + int dotpos = v.findRev( '.' ); if( dotpos > 0 ) v.truncate( dotpos ); return v; @@ -344,7 +344,7 @@ TQString K3b::appendNumberToFilename( const TQString& name, int num, unsigned in // determine extension (we think of an extension to be at most 5 chars in length) TQString result = name; TQString ext; - int pos = name.tqfind( '.', -6 ); + int pos = name.find( '.', -6 ); if( pos > 0 ) { ext = name.mid(pos); result.truncate( pos ); @@ -426,7 +426,7 @@ TQString K3b::resolveLink( const TQString& file ) if( !p.startsWith( "/" ) ) p.prepend( f.dirPath(true) + "/" ); f.setFile( p ); - if( steps.tqcontains( f.absFilePath() ) ) { + if( steps.contains( f.absFilePath() ) ) { kdDebug() << "(K3b) symlink loop detected." << endl; break; } |