summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp')
-rw-r--r--experimental/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/experimental/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp b/experimental/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
index ef0ab02b1..969d424b3 100644
--- a/experimental/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp
+++ b/experimental/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;
}