From 8155225c9be993acc0512956416d195edfef4eb9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Jan 2011 01:42:14 +0000 Subject: Enable compilation with TQt for Qt4 3.4.0 TP2 This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kappfinder/common.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kappfinder/common.cpp') diff --git a/kappfinder/common.cpp b/kappfinder/common.cpp index 71ae2319e..c5cea0df5 100644 --- a/kappfinder/common.cpp +++ b/kappfinder/common.cpp @@ -61,13 +61,13 @@ bool scanDesktopFile( TQPtrList &appCache, const TQString &templ, // find out the name of the file to store destName = templ; - int pos = templ.find( "kappfinder/apps/" ); + int pos = templ.tqfind( "kappfinder/apps/" ); if ( pos > 0 ) destName = destName.mid( pos + strlen( "kappfinder/apps/" ) ); // calculate real dir and filename destName = destDir + destName; - pos = destName.findRev( '/' ); + pos = destName.tqfindRev( '/' ); if ( pos > 0 ) { destDir = destName.left( pos ); destName = destName.mid( pos + 1 ); @@ -77,7 +77,7 @@ bool scanDesktopFile( TQPtrList &appCache, const TQString &templ, TQString exec = desktop.readPathEntry( "TryExec" ); if ( exec.isEmpty() ) exec = desktop.readPathEntry( "Exec" ); - pos = exec.find( ' ' ); + pos = exec.tqfind( ' ' ); if ( pos > 0 ) exec = exec.left( pos ); @@ -117,7 +117,7 @@ void createDesktopFiles( TQPtrList &appCache, int &added ) destDir += "/"; TQDir d; int pos = -1; - while ( ( pos = destDir.find( '/', pos + 1 ) ) >= 0 ) { + while ( ( pos = destDir.tqfind( '/', 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.find( "kappfinder/apps/" ); + int pos = destName.tqfind( "kappfinder/apps/" ); if ( pos > 0 ) destName = destName.mid( pos + strlen( "kappfinder/apps/" ) ); -- cgit v1.2.1