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 | 330c33ab6f97b279737bf9527c9add7bb1475450 (patch) | |
tree | 85cb998d3077ae295d65944ebb4d0189fc660ead /buildtools/qmake/qmakescopeitem.cpp | |
parent | 093de0db4fea89b3f94a2359c6981f353d035eb7 (diff) | |
download | tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.tar.gz tdevelop-330c33ab6f97b279737bf9527c9add7bb1475450.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/qmake/qmakescopeitem.cpp')
-rw-r--r-- | buildtools/qmake/qmakescopeitem.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/buildtools/qmake/qmakescopeitem.cpp b/buildtools/qmake/qmakescopeitem.cpp index f3cebef2..9da11ca4 100644 --- a/buildtools/qmake/qmakescopeitem.cpp +++ b/buildtools/qmake/qmakescopeitem.cpp @@ -338,7 +338,7 @@ TQString QMakeScopeItem::relativePath() return ""; if( scope->scopeType() == Scope::ProjectScope ) { - if( scope->tqparent() && scope->tqparent()->variableValues("SUBDIRS").tqcontains( URLUtil::relativePathToFile( scope->tqparent()->projectDir(), scope->projectDir()+"/"+scope->fileName() ) ) ) + if( scope->tqparent() && scope->tqparent()->variableValues("SUBDIRS").contains( URLUtil::relativePathToFile( scope->tqparent()->projectDir(), scope->projectDir()+"/"+scope->fileName() ) ) ) { return URLUtil::relativePathToFile( scope->tqparent()->projectDir(), scope->projectDir()+"/"+scope->fileName() ); }else @@ -360,7 +360,7 @@ TQString QMakeScopeItem::relativePath() TQString QMakeScopeItem::getSharedLibAddObject( TQString basePath ) { - if ( scope->variableValues( "CONFIG" ).tqfindIndex( "dll" ) != -1 ) + if ( scope->variableValues( "CONFIG" ).findIndex( "dll" ) != -1 ) { TQString tmpPath = URLUtil::getRelativePath(basePath, scope->projectDir() ); if ( !scope->variableValues( "DESTDIR" ).front().isEmpty() ) @@ -422,7 +422,7 @@ TQString QMakeScopeItem::getApplicationObject( TQString basePath ) TQString QMakeScopeItem::getLibAddObject( TQString basePath ) { - if ( scope->variableValues( "CONFIG" ).tqfindIndex( "dll" ) != -1 ) + if ( scope->variableValues( "CONFIG" ).findIndex( "dll" ) != -1 ) { TQString target = scope->resolveVariables( scope->variableValues( "TARGET" ).front() ); if ( !target.isEmpty() ) @@ -434,8 +434,8 @@ TQString QMakeScopeItem::getLibAddObject( TQString basePath ) return ( "-l" + scope->projectName() ); } } - else if ( scope->variableValues( "CONFIG" ).tqfindIndex( "staticlib" ) != -1 - || scope->variableValues("TEMPLATE").tqfindIndex("lib") != -1 ) + else if ( scope->variableValues( "CONFIG" ).findIndex( "staticlib" ) != -1 + || scope->variableValues("TEMPLATE").findIndex("lib") != -1 ) { TQString tmpPath = URLUtil::getRelativePath(basePath, scope->projectDir() ); TQString destdir = scope->resolveVariables( scope->variableValues( "DESTDIR" ).front() ); @@ -474,7 +474,7 @@ TQString QMakeScopeItem::getLibAddPath( TQString basePath ) { //PATH only add if shared lib - if ( scope->variableValues( "CONFIG" ).tqfindIndex( "dll" ) == -1 ) return ( "" ); + if ( scope->variableValues( "CONFIG" ).findIndex( "dll" ) == -1 ) return ( "" ); TQString tmpPath = URLUtil::getRelativePath(basePath, scope->projectDir() ); TQString destdir = scope->resolveVariables( scope->variableValues( "DESTDIR" ).front() ); @@ -541,17 +541,17 @@ void QMakeScopeItem::init() TQStringList tmp = scope->variableValues( "TEMPLATE" ); if( scope->isEnabled() ) { - if ( tmp.tqfindIndex( "subdirs" ) != -1 ) + if ( tmp.findIndex( "subdirs" ) != -1 ) setPixmap( 0, SmallIcon( "folder" ) ); - else if ( tmp.tqfindIndex( "lib" ) != -1 ) + else if ( tmp.findIndex( "lib" ) != -1 ) setPixmap( 0, SmallIcon( "qmake_lib" ) ); else setPixmap( 0, SmallIcon( "qmake_app" ) ); }else { - if ( tmp.tqfindIndex( "subdirs" ) != -1 ) + if ( tmp.findIndex( "subdirs" ) != -1 ) setPixmap( 0, SmallIcon( "folder_grey" ) ); - else if ( tmp.tqfindIndex( "lib" ) != -1 ) + else if ( tmp.findIndex( "lib" ) != -1 ) setPixmap( 0, SmallIcon( "qmake_lib_disabled" ) ); else setPixmap( 0, SmallIcon( "qmake_app_disabled" ) ); @@ -578,7 +578,7 @@ FileItem* QMakeScopeItem::createFileItem( const TQString& name ) TQString display = name; if( m_widget->showFilenamesOnly() ) { - int dirSepPos = name.tqfindRev( TQChar( TQDir::separator() ) ); + int dirSepPos = name.findRev( TQChar( TQDir::separator() ) ); if ( dirSepPos != - 1 ) display = name.mid( dirSepPos + 1 ); } @@ -596,7 +596,7 @@ FileItem* QMakeScopeItem::createFileItem( const TQString& name ) void QMakeScopeItem::buildGroups() { - if( scope->variableValues("TEMPLATE").tqfindIndex("subdirs") != -1 ) + if( scope->variableValues("TEMPLATE").findIndex("subdirs") != -1 ) return; TQStringList values; @@ -739,12 +739,12 @@ void QMakeScopeItem::addValues( const TQString& var, const TQStringList& values void QMakeScopeItem::removeValue( const TQString& var, const TQString& value ) { - if( scope->scopeType() != Scope::IncludeScope && scope->variableValues( var ).tqfindIndex( value ) != -1 ) + if( scope->scopeType() != Scope::IncludeScope && scope->variableValues( var ).findIndex( value ) != -1 ) { - if( scope->variableValuesForOp( var, "+=" ).tqfindIndex(value) != -1 ) + if( scope->variableValuesForOp( var, "+=" ).findIndex(value) != -1 ) { scope->removeFromPlusOp( var, TQStringList( value ) ); - if( scope->variableValues( var ).tqfindIndex( value ) != -1 ) + if( scope->variableValues( var ).findIndex( value ) != -1 ) { scope->addToMinusOp( var, TQStringList( value ) ); } @@ -758,9 +758,9 @@ void QMakeScopeItem::removeValue( const TQString& var, const TQString& value ) void QMakeScopeItem::addValue( const TQString& var, const TQString& value ) { - if( scope->scopeType() != Scope::IncludeScope && scope->variableValues( var ).tqfindIndex( value ) == -1 ) + if( scope->scopeType() != Scope::IncludeScope && scope->variableValues( var ).findIndex( value ) == -1 ) { - if( scope->variableValuesForOp( var, "-=" ).tqfindIndex(value) != -1 ) + if( scope->variableValuesForOp( var, "-=" ).findIndex(value) != -1 ) scope->removeFromMinusOp( var, TQStringList( value ) ); else scope->addToPlusOp( var, TQStringList( value ) ); @@ -776,9 +776,9 @@ void QMakeScopeItem::updateValues( const TQString& var, const TQStringList& valu TQStringList scopeValues = scope->variableValuesForOp( var, "+=" ); for( TQStringList::const_iterator it = curValues.begin(); it != curValues.end(); ++it ) { - if ( values.tqfindIndex( *it ) == -1 ) + if ( values.findIndex( *it ) == -1 ) { - if( scopeValues.tqfindIndex( *it ) != -1 ) + if( scopeValues.findIndex( *it ) != -1 ) { scope->removeFromPlusOp( var, TQStringList( *it ) ); scopeValues.remove( *it ); @@ -788,7 +788,7 @@ void QMakeScopeItem::updateValues( const TQString& var, const TQStringList& valu } for( TQStringList::const_iterator it = values.begin(); it != values.end(); ++it ) { - if ( scopeValues.tqfindIndex( *it ) != -1 ) + if ( scopeValues.findIndex( *it ) != -1 ) { scopeValues.remove(*it); } @@ -843,7 +843,7 @@ void QMakeScopeItem::disableSubprojects( const TQStringList& dirs ) TQStringList::const_iterator it = dirs.begin(); for( ; it != dirs.end() ; ++it) { - if( scope->variableValues("SUBDIRS").tqfindIndex(*it) != -1 ) + if( scope->variableValues("SUBDIRS").findIndex(*it) != -1 ) { Scope* s = scope->disableSubproject(*it); if( !s ) @@ -926,4 +926,4 @@ TQMap<TQString, TQString> QMakeScopeItem::getLibInfos( TQString basePath ) return result; } -// kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on +// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on |