summaryrefslogtreecommitdiffstats
path: root/kontact/src/profilemanager.cpp
diff options
context:
space:
mode:
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 bb8d50957..804f65e31 100644
--- a/kontact/src/profilemanager.cpp
+++ b/kontact/src/profilemanager.cpp
@@ -178,7 +178,7 @@ void Kontact::ProfileManager::writeProfileConfig( const Kontact::Profile& profil
void Kontact::ProfileManager::readConfig()
{
- const TQStringList profilePaths = KGlobal::dirs()->findAllResources( "data", TQString::fromLatin1( "kontact/profiles/*/profile.cfg" ) );
+ const TQStringList profilePaths = KGlobal::dirs()->findAllResources( "data", TQString::tqfromLatin1( "kontact/profiles/*/profile.cfg" ) );
typedef TQMap<TQString, Kontact::Profile> ProfileMap;
ProfileMap profiles;
@@ -199,7 +199,7 @@ void Kontact::ProfileManager::readConfig()
for ( ProfileMap::ConstIterator it = globalProfiles.begin(), end = globalProfiles.end(); it != end; ++it )
{
- if ( !profiles.contains( it.key() ) )
+ if ( !profiles.tqcontains( 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.contains( id ) )
+ if ( m_profiles.tqcontains( 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.contains( id ) )
+ if ( !m_profiles.tqcontains( 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.contains( id ) )
+ if ( !m_profiles.tqcontains( 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.contains( id ) )
+ if ( !m_profiles.tqcontains( 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.contains( newId ) )
+ if ( !m_profiles.tqcontains( newId ) )
return newId;
}
}