summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-08-09 22:25:47 -0500
commiteaa7ee2e0bbca40ba3173c4304f81957e8964291 (patch)
tree4f793aa48a5080aedc94ce6e519c3b86708f2b88 /tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
parent79a9d7a46a20d4a0923bc06fc471fdc2176ef865 (diff)
downloadexperimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.tar.gz
experimental-eaa7ee2e0bbca40ba3173c4304f81957e8964291.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains
Diffstat (limited to 'tqtinterface/qt4/src/tools/tqgpluginmanager.cpp')
-rw-r--r--tqtinterface/qt4/src/tools/tqgpluginmanager.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp b/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
index ef0ab02..969d424 100644
--- a/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
+++ b/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
@@ -330,7 +330,7 @@ void TQGPluginManager::addLibraryPath( const TQString& path )
TQStringList plugins = TQDir(path).entryList( filter );
for ( TQStringList::Iterator p = plugins.begin(); p != plugins.end(); ++p ) {
TQString lib = TQDir::cleanDirPath( path + "/" + *p );
- if ( libList.tqcontains( lib ) )
+ if ( libList.contains( lib ) )
continue;
libList.append( lib );
}
@@ -376,14 +376,14 @@ const TQLibrary* TQGPluginManager::library( const TQString& feature ) const
group.sort(); // sort according to the base name
TQStringList::ConstIterator git = group.begin();
while ( git != group.end() ) {
- TQString lib = (*git).mid( (*git).tqfind( TQChar(0xfffd) ) + 1 );
- TQString basename = (*git).left( (*git).tqfind( TQChar(0xfffd) ) );
+ TQString lib = (*git).mid( (*git).find( TQChar(0xfffd) ) + 1 );
+ TQString basename = (*git).left( (*git).find( TQChar(0xfffd) ) );
++git;
TQStringList sameBasename;
while( git != group.end() &&
- basename == (*git).left( (*git).tqfind( TQChar(0xfffd) ) ) ) {
- sameBasename << (*git).mid( (*git).tqfind( TQChar(0xfffd) ) + 1 );
+ basename == (*git).left( (*git).find( TQChar(0xfffd) ) ) ) {
+ sameBasename << (*git).mid( (*git).find( TQChar(0xfffd) ) + 1 );
++git;
}
@@ -402,7 +402,7 @@ const TQLibrary* TQGPluginManager::library( const TQString& feature ) const
&& ( !bestMatch || candidate->qtVersion() > bestMatch->qtVersion() ) )
bestMatch = candidate;
if ( bestMatch ) {
- same.tqfind( bestMatch );
+ same.find( bestMatch );
that->addLibrary( same.take() );
}
}
@@ -444,7 +444,7 @@ TQStringList TQGPluginManager::featureList() const
}
}
for ( it = phase2Libs.begin(); it != phase2Libs.end(); ++it )
- if ( !phase2Deny.tqcontains( TQFileInfo( *it ).baseName() ) )
+ if ( !phase2Deny.contains( TQFileInfo( *it ).baseName() ) )
that->addLibrary( new TQComLibrary( *it ) );
for ( TQDictIterator<TQLibrary> pit( plugDict ); pit.current(); ++pit )
@@ -485,7 +485,7 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib )
TQLibrary *old = plugDict[*f];
if ( !old ) {
useful = TRUE;
- plugDict.tqreplace( *f, plugin );
+ plugDict.replace( *f, plugin );
} else {
// we have old *and* plugin, which one to pick?
TQComLibrary* first = (TQComLibrary*)old;
@@ -500,7 +500,7 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib )
}
if ( !takeFirst ) {
useful = TRUE;
- plugDict.tqreplace( *f, plugin );
+ plugDict.replace( *f, plugin );
qWarning("%s: Discarding feature %s in %s!",
(const char*) TQFile::encodeName( plugin->library()),
(*f).latin1(),
@@ -521,8 +521,8 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib )
}
if ( useful ) {
- libDict.tqreplace( plugin->library(), plugin );
- if ( !libList.tqcontains( plugin->library() ) )
+ libDict.replace( plugin->library(), plugin );
+ if ( !libList.contains( plugin->library() ) )
libList.append( plugin->library() );
return TRUE;
}