summaryrefslogtreecommitdiffstats
path: root/kabc/kab2kabc.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kabc/kab2kabc.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/kab2kabc.cpp')
-rw-r--r--kabc/kab2kabc.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kabc/kab2kabc.cpp b/kabc/kab2kabc.cpp
index 9d8ea75ee..e78847b91 100644
--- a/kabc/kab2kabc.cpp
+++ b/kabc/kab2kabc.cpp
@@ -58,7 +58,7 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
TQString comment;
if ( entry.at( entry.length() -1 ) == ')' ) {
- int br = entry.findRev( '(' );
+ int br = entry.tqfindRev( '(' );
if ( br >= 0 ) {
comment = entry.mid( br + 1, entry.length() - br - 2 );
entry.truncate( br );
@@ -68,7 +68,7 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
}
}
- int posSpace = entry.findRev( ' ' );
+ int posSpace = entry.tqfindRev( ' ' );
if ( posSpace < 0 ) {
email = entry;
if ( !comment.isEmpty() ) {
@@ -91,7 +91,7 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
}
if ( name.at( name.length() -1 ) == ')' ) {
- int br = name.findRev( '(' );
+ int br = name.tqfindRev( '(' );
if ( br >= 0 ) {
comment = name.mid( br + 1, name.length() - br - 2 ) + " " + comment;
name.truncate( br );
@@ -105,7 +105,7 @@ void readKMailEntry( const TQString &kmailEntry, KABC::AddressBook *ab )
kdDebug() << " NAME : " << name << endl;
kdDebug() << " COMMENT : " << comment << endl;
- KABC::Addressee::List al = ab->findByEmail( email );
+ KABC::Addressee::List al = ab->tqfindByEmail( email );
if ( al.isEmpty() ) {
KABC::Addressee a;
a.setNameFromString( name );
@@ -128,7 +128,7 @@ void importKMailAddressBook( KABC::AddressBook *ab )
fileName = cfg.readPathEntry( "default", fileName );
}
if ( !KStandardDirs::exists( fileName ) ) {
- kdDebug(5700) << "Couldn't find KMail addressbook." << endl;
+ kdDebug(5700) << "Couldn't tqfind KMail addressbook." << endl;
return;
}
@@ -180,7 +180,7 @@ void readKAddressBookEntries( const TQString &dataString, Addressee &a )
TQStringList::ConstIterator it;
for ( it = entries.begin(); it != entries.end(); ++it ) {
- int pos = (*it).find( "\n" );
+ int pos = (*it).tqfind( "\n" );
TQString fieldName = (*it).left( pos );
TQString fieldValue = (*it).mid( pos + 2 );
@@ -325,7 +325,7 @@ void importKab( KABC::AddressBook *ab, bool override, bool quiet )
TQStringList::ConstIterator customIt;
for ( customIt = entry.custom.begin(); customIt != entry.custom.end(); ++customIt ) {
if ( (*customIt).startsWith( "X-KABC-UID:" ) ) {
- a.setUid( (*customIt).mid( (*customIt).find( ":" ) + 1 ) );
+ a.setUid( (*customIt).mid( (*customIt).tqfind( ":" ) + 1 ) );
idFound = true;
} else if ( (*customIt).startsWith( "KMail:1.0\n" ) ) {
readKAddressBookEntries( *customIt, a );