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 | 9a3f0aacd44fb866833ebcb852df3cd31475cb33 (patch) | |
tree | 9f699684624f4e78e13e7dd2393a103cc6fa8274 /kappfinder | |
parent | 341ad02235b9c85cd31782225181ed475b74eaa3 (diff) | |
download | tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.tar.gz tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kappfinder')
-rw-r--r-- | kappfinder/common.cpp | 10 | ||||
-rw-r--r-- | kappfinder/toplevel.cpp | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/kappfinder/common.cpp b/kappfinder/common.cpp index c5cea0df5..71ae2319e 100644 --- a/kappfinder/common.cpp +++ b/kappfinder/common.cpp @@ -61,13 +61,13 @@ bool scanDesktopFile( TQPtrList<AppLnkCache> &appCache, const TQString &templ, // find out the name of the file to store destName = templ; - int pos = templ.tqfind( "kappfinder/apps/" ); + int pos = templ.find( "kappfinder/apps/" ); if ( pos > 0 ) destName = destName.mid( pos + strlen( "kappfinder/apps/" ) ); // calculate real dir and filename destName = destDir + destName; - pos = destName.tqfindRev( '/' ); + pos = destName.findRev( '/' ); if ( pos > 0 ) { destDir = destName.left( pos ); destName = destName.mid( pos + 1 ); @@ -77,7 +77,7 @@ bool scanDesktopFile( TQPtrList<AppLnkCache> &appCache, const TQString &templ, TQString exec = desktop.readPathEntry( "TryExec" ); if ( exec.isEmpty() ) exec = desktop.readPathEntry( "Exec" ); - pos = exec.tqfind( ' ' ); + pos = exec.find( ' ' ); if ( pos > 0 ) exec = exec.left( pos ); @@ -117,7 +117,7 @@ void createDesktopFiles( TQPtrList<AppLnkCache> &appCache, int &added ) destDir += "/"; TQDir d; int pos = -1; - while ( ( pos = destDir.tqfind( '/', pos + 1 ) ) >= 0 ) { + while ( ( pos = destDir.find( '/', pos + 1 ) ) >= 0 ) { TQString path = destDir.left( pos + 1 ); d = path; if ( !d.exists() ) @@ -144,7 +144,7 @@ void decorateDirs( TQString destDir ) for ( it = dirs.begin(); it != dirs.end(); ++it ) { // find out the name of the file to store TQString destName = *it; - int pos = destName.tqfind( "kappfinder/apps/" ); + int pos = destName.find( "kappfinder/apps/" ); if ( pos > 0 ) destName = destName.mid( pos + strlen( "kappfinder/apps/" ) ); diff --git a/kappfinder/toplevel.cpp b/kappfinder/toplevel.cpp index 389beacda..e5cf13ec8 100644 --- a/kappfinder/toplevel.cpp +++ b/kappfinder/toplevel.cpp @@ -100,7 +100,7 @@ TopLevel::TopLevel( const TQString &destDir, TQWidget *parent, const char *name adjustSize(); mDestDir = destDir; - mDestDir = mDestDir.tqreplace( TQRegExp( "^~/" ), TQDir::homeDirPath() + "/" ); + mDestDir = mDestDir.replace( TQRegExp( "^~/" ), TQDir::homeDirPath() + "/" ); KStartupInfo::appStarted(); @@ -183,9 +183,9 @@ void TopLevel::slotScan() mProgress->setProgress( mProgress->progress() + 1 ); TQString desktopName = *it; - int i = desktopName.tqfindRev('/'); + int i = desktopName.findRev('/'); desktopName = desktopName.mid(i+1); - i = desktopName.tqfindRev('.'); + i = desktopName.findRev('.'); if (i != -1) desktopName = desktopName.left(i); @@ -207,9 +207,9 @@ void TopLevel::slotScan() // copy over the desktop file, if exists if ( scanDesktopFile( mAppCache, *it, mDestDir ) ) { TQString relPath = *it; - int pos = relPath.tqfind( "kappfinder/apps/" ); + int pos = relPath.find( "kappfinder/apps/" ); relPath = relPath.mid( pos + strlen( "kappfinder/apps/" ) ); - relPath = relPath.left( relPath.tqfindRev( '/' ) + 1 ); + relPath = relPath.left( relPath.findRev( '/' ) + 1 ); TQStringList dirList = TQStringList::split( '/', relPath ); TQListViewItem *dirItem = 0; |