summaryrefslogtreecommitdiffstats
path: root/kresources
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit6e21bc798ba1066147d69dcc2d5c222ffafb9a90 (patch)
tree36613dfe2f86f8ccb96a30f3880507341228eeb0 /kresources
parent1e9fe867b0def399c63c42f35e83c3575e91ff83 (diff)
downloadtdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.tar.gz
tdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources')
-rw-r--r--kresources/configpage.cpp4
-rw-r--r--kresources/factory.cpp10
-rw-r--r--kresources/managerimpl.cpp12
3 files changed, 13 insertions, 13 deletions
diff --git a/kresources/configpage.cpp b/kresources/configpage.cpp
index c6c9fcf5b..fa098b105 100644
--- a/kresources/configpage.cpp
+++ b/kresources/configpage.cpp
@@ -179,7 +179,7 @@ void ConfigPage::load()
KTrader::OfferList::ConstIterator end = plugins.end();
for ( ; it != end; ++it ) {
const TQString family = (*it)->property( "X-KDE-ResourceFamily" ).toString();
- if ( compatFamilyNames.tqfind( family ) == compatFamilyNames.end() )
+ if ( compatFamilyNames.find( family ) == compatFamilyNames.end() )
compatFamilyNames.append( family );
}
@@ -300,7 +300,7 @@ void ConfigPage::slotAdd()
if ( !ok )
return;
- TQString type = types[ descs.tqfindIndex( desc ) ];
+ TQString type = types[ descs.findIndex( desc ) ];
// Create new resource
Resource *resource = mCurrentManager->createResource( type );
diff --git a/kresources/factory.cpp b/kresources/factory.cpp
index 14f905603..462d6be9c 100644
--- a/kresources/factory.cpp
+++ b/kresources/factory.cpp
@@ -45,7 +45,7 @@ Factory *Factory::self( const TQString& resourceFamily )
if ( !mSelves )
staticDeleter.setObject( mSelves, new TQDict<Factory> );
- factory = mSelves->tqfind( resourceFamily );
+ factory = mSelves->find( resourceFamily );
if ( !factory ) {
factory = new Factory( resourceFamily );
@@ -79,7 +79,7 @@ TQStringList Factory::typeNames() const
ConfigWidget *Factory::configWidget( const TQString& type, TQWidget *parent )
{
- if ( type.isEmpty() || !mTypeMap.tqcontains( type ) )
+ if ( type.isEmpty() || !mTypeMap.contains( type ) )
return 0;
KService::Ptr ptr = mTypeMap[ type ];
@@ -109,7 +109,7 @@ ConfigWidget *Factory::configWidget( const TQString& type, TQWidget *parent )
TQString Factory::typeName( const TQString &type ) const
{
- if ( type.isEmpty() || !mTypeMap.tqcontains( type ) )
+ if ( type.isEmpty() || !mTypeMap.contains( type ) )
return TQString();
KService::Ptr ptr = mTypeMap[ type ];
@@ -118,7 +118,7 @@ TQString Factory::typeName( const TQString &type ) const
TQString Factory::typeDescription( const TQString &type ) const
{
- if ( type.isEmpty() || !mTypeMap.tqcontains( type ) )
+ if ( type.isEmpty() || !mTypeMap.contains( type ) )
return TQString();
KService::Ptr ptr = mTypeMap[ type ];
@@ -129,7 +129,7 @@ Resource *Factory::resource( const TQString& type, const KConfig *config )
{
kdDebug(5650) << "Factory::resource( " << type << ", config )" << endl;
- if ( type.isEmpty() || !mTypeMap.tqcontains( type ) ) {
+ if ( type.isEmpty() || !mTypeMap.contains( type ) ) {
kdDebug(5650) << "Factory::resource() no such type " << type << endl;
return 0;
}
diff --git a/kresources/managerimpl.cpp b/kresources/managerimpl.cpp
index 15dd33428..b5d9ec32f 100644
--- a/kresources/managerimpl.cpp
+++ b/kresources/managerimpl.cpp
@@ -353,7 +353,7 @@ Resource *ManagerImpl::readResourceConfig( const TQString &identifier,
if ( checkActive ) {
TQStringList activeKeys = mConfig->readListEntry( "ResourceKeys" );
- resource->setActive( activeKeys.tqcontains( identifier ) );
+ resource->setActive( activeKeys.contains( identifier ) );
}
mResources.append( resource );
@@ -383,20 +383,20 @@ void ManagerImpl::writeResourceConfig( Resource *resource, bool checkActive )
TQStringList activeKeys = mConfig->readListEntry( "ResourceKeys" );
TQStringList passiveKeys = mConfig->readListEntry( "PassiveResourceKeys" );
if ( resource->isActive() ) {
- if ( passiveKeys.tqcontains( key ) ) { // remove it from passive list
+ if ( passiveKeys.contains( key ) ) { // remove it from passive list
passiveKeys.remove( key );
mConfig->writeEntry( "PassiveResourceKeys", passiveKeys );
}
- if ( !activeKeys.tqcontains( key ) ) { // add it to active list
+ if ( !activeKeys.contains( key ) ) { // add it to active list
activeKeys.append( key );
mConfig->writeEntry( "ResourceKeys", activeKeys );
}
} else if ( !resource->isActive() ) {
- if ( activeKeys.tqcontains( key ) ) { // remove it from active list
+ if ( activeKeys.contains( key ) ) { // remove it from active list
activeKeys.remove( key );
mConfig->writeEntry( "ResourceKeys", activeKeys );
}
- if ( !passiveKeys.tqcontains( key ) ) { // add it to passive list
+ if ( !passiveKeys.contains( key ) ) { // add it to passive list
passiveKeys.append( key );
mConfig->writeEntry( "PassiveResourceKeys", passiveKeys );
}
@@ -414,7 +414,7 @@ void ManagerImpl::removeResource( Resource *resource )
mConfig->setGroup( "General" );
TQStringList activeKeys = mConfig->readListEntry( "ResourceKeys" );
- if ( activeKeys.tqcontains( key ) ) {
+ if ( activeKeys.contains( key ) ) {
activeKeys.remove( key );
mConfig->writeEntry( "ResourceKeys", activeKeys );
} else {