summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetecontactlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopetecontactlist.cpp')
-rw-r--r--kopete/libkopete/kopetecontactlist.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kopete/libkopete/kopetecontactlist.cpp b/kopete/libkopete/kopetecontactlist.cpp
index 65960dcf..421354a6 100644
--- a/kopete/libkopete/kopetecontactlist.cpp
+++ b/kopete/libkopete/kopetecontactlist.cpp
@@ -218,7 +218,7 @@ TQPtrList<Group> ContactList::selectedGroups() const
void ContactList::addMetaContact( MetaContact *mc )
{
- if ( d->contacts.tqcontains( mc ) )
+ if ( d->contacts.contains( mc ) )
return;
d->contacts.append( mc );
@@ -232,13 +232,13 @@ void ContactList::addMetaContact( MetaContact *mc )
void ContactList::removeMetaContact(MetaContact *m)
{
- if ( !d->contacts.tqcontains(m) )
+ if ( !d->contacts.contains(m) )
{
kdDebug(14010) << k_funcinfo << "Trying to remove a not listed MetaContact." << endl;
return;
}
- if ( d->selectedMetaContacts.tqcontains( m ) )
+ if ( d->selectedMetaContacts.contains( m ) )
{
d->selectedMetaContacts.remove( m );
setSelectedItems( d->selectedMetaContacts, d->selectedGroups );
@@ -259,7 +259,7 @@ void ContactList::removeMetaContact(MetaContact *m)
void ContactList::addGroup( Group * g )
{
- if(!d->groups.tqcontains(g) )
+ if(!d->groups.contains(g) )
{
d->groups.append( g );
emit groupAdded( g );
@@ -269,7 +269,7 @@ void ContactList::addGroup( Group * g )
void ContactList::removeGroup( Group *g )
{
- if ( d->selectedGroups.tqcontains( g ) )
+ if ( d->selectedGroups.contains( g ) )
{
d->selectedGroups.remove( g );
setSelectedItems( d->selectedMetaContacts, d->selectedGroups );
@@ -396,7 +396,7 @@ void ContactList::loadXML()
TQString versionString = list.attribute( TQString::tqfromLatin1( "version" ), TQString() );
uint version = 0;
if( TQRegExp( TQString::tqfromLatin1( "[0-9]+\\.[0-9]" ) ).exactMatch( versionString ) )
- version = versionString.tqreplace( TQString::tqfromLatin1( "." ), TQString() ).toUInt();
+ version = versionString.replace( TQString::tqfromLatin1( "." ), TQString() ).toUInt();
if( version < Private::ContactListVersion )
{
@@ -542,7 +542,7 @@ void ContactList::convertContactList( const TQString &fileName, uint /* fromVers
{
app = id;
key = TQString::tqfromLatin1( "All" );
- val = data.tqreplace( separator, TQChar( 0xE000 ) );
+ val = data.replace( separator, TQChar( 0xE000 ) );
}
if( !app.isEmpty() )
@@ -668,8 +668,8 @@ void ContactList::convertContactList( const TQString &fileName, uint /* fromVers
// Unescape '||'
for( TQStringList::iterator it = strList.begin(); it != strList.end(); ++it )
{
- ( *it ).tqreplace( TQString::tqfromLatin1( "\\|;" ), TQString::tqfromLatin1( "|" ) ).
- tqreplace( TQString::tqfromLatin1( "\\\\" ), TQString::tqfromLatin1( "\\" ) );
+ ( *it ).replace( TQString::tqfromLatin1( "\\|;" ), TQString::tqfromLatin1( "|" ) ).
+ replace( TQString::tqfromLatin1( "\\\\" ), TQString::tqfromLatin1( "\\" ) );
}
uint idx = 0;