summaryrefslogtreecommitdiffstats
path: root/kontact/src/profilemanager.cpp
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
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kontact/src/profilemanager.cpp
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/src/profilemanager.cpp')
-rw-r--r--kontact/src/profilemanager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kontact/src/profilemanager.cpp b/kontact/src/profilemanager.cpp
index 005779414..50b2a71d4 100644
--- a/kontact/src/profilemanager.cpp
+++ b/kontact/src/profilemanager.cpp
@@ -152,7 +152,7 @@ void Kontact::ProfileManager::writeConfig() const
Kontact::Profile Kontact::ProfileManager::readFromConfiguration( const TQString& configFile, bool isLocal )
{
KConfig profileCfg( configFile, true /*read-only*/, false /*no KDE global*/ );
- const TQString configDir = configFile.left( configFile.tqfindRev( TQDir::separator(), -1 ) );
+ const TQString configDir = configFile.left( configFile.findRev( TQDir::separator(), -1 ) );
profileCfg.setGroup( "Kontact Profile" );
const TQString id = profileCfg.readEntry( "Identifier" );
Kontact::Profile profile( id );
@@ -199,7 +199,7 @@ void Kontact::ProfileManager::readConfig()
for ( ProfileMap::ConstIterator it = globalProfiles.begin(), end = globalProfiles.end(); it != end; ++it )
{
- if ( !profiles.tqcontains( it.key() ) )
+ if ( !profiles.contains( it.key() ) )
profiles[it.key()] = it.data();
}
@@ -252,7 +252,7 @@ void Kontact::ProfileManager::saveToProfile( const TQString& id )
bool Kontact::ProfileManager::addProfile( const Kontact::Profile& profile, bool syncConfig )
{
const TQString id = profile.id();
- if ( m_profiles.tqcontains( id ) )
+ if ( m_profiles.contains( id ) )
return false;
m_profiles[id] = profile;
emit profileAdded( id );
@@ -266,7 +266,7 @@ bool Kontact::ProfileManager::addProfile( const Kontact::Profile& profile, bool
void Kontact::ProfileManager::loadProfile( const TQString& id )
{
- if ( !m_profiles.tqcontains( id ) )
+ if ( !m_profiles.contains( id ) )
return;
emit profileLoaded( id );
}
@@ -278,7 +278,7 @@ void Kontact::ProfileManager::removeProfile( const Kontact::Profile& profile )
void Kontact::ProfileManager::removeProfile( const TQString& id )
{
- if ( !m_profiles.tqcontains( id ) )
+ if ( !m_profiles.contains( id ) )
return;
Kontact::Profile profile = profileById( id );
if ( profile.isLocal() ) {
@@ -292,7 +292,7 @@ void Kontact::ProfileManager::removeProfile( const TQString& id )
Kontact::ProfileManager::ExportError Kontact::ProfileManager::exportProfileToDirectory( const TQString& id, const TQString& path )
{
- if ( !m_profiles.tqcontains( id ) )
+ if ( !m_profiles.contains( id ) )
return SuccessfulExport;
if ( !TQDir( path ).exists() )
@@ -332,7 +332,7 @@ TQString Kontact::ProfileManager::generateNewId() const
while ( true )
{
const TQString newId = KApplication::randomString( 10 );
- if ( !m_profiles.tqcontains( newId ) )
+ if ( !m_profiles.contains( newId ) )
return newId;
}
}