diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch) | |
tree | 766a8ad7939fcf3eec534184c36bd0e0f80489e2 /kabc/kabc2mutt | |
parent | 469cc56a805bd3d6940d54adbef554877c29853c (diff) | |
download | tdepim-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 'kabc/kabc2mutt')
-rw-r--r-- | kabc/kabc2mutt/kabc2mutt.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kabc/kabc2mutt/kabc2mutt.cpp b/kabc/kabc2mutt/kabc2mutt.cpp index 7e10dc32e..c12967862 100644 --- a/kabc/kabc2mutt/kabc2mutt.cpp +++ b/kabc/kabc2mutt/kabc2mutt.cpp @@ -53,8 +53,8 @@ void KABC2Mutt::loadingFinished() for ( iaddr = mAddressBook->begin(); iaddr != mAddressBook->end(); ++iaddr ) { const TQString name = (*iaddr).givenName() + ' ' + (*iaddr).familyName(); if ( !mQuery.isEmpty() ) { - bool match = (name.tqfind(mQuery, 0, mIgnoreCase) > -1) || - ((*iaddr).preferredEmail().tqfind( mQuery, 0, mIgnoreCase ) > -1 ); + bool match = (name.find(mQuery, 0, mIgnoreCase) > -1) || + ((*iaddr).preferredEmail().find( mQuery, 0, mIgnoreCase ) > -1 ); if ( !match ) continue; } @@ -86,9 +86,9 @@ void KABC2Mutt::loadingFinished() else if ( !(*iaddr).familyName().isEmpty() ) key = (*iaddr).givenName().left( 1 ).lower() + - (*iaddr).familyName().lower().tqreplace( space, underscore ); + (*iaddr).familyName().lower().replace( space, underscore ); else - key = (*iaddr).givenName().lower().tqreplace( space, underscore ); + key = (*iaddr).givenName().lower().replace( space, underscore ); while ( from != to ) { std::cout << "alias " << key; @@ -101,7 +101,7 @@ void KABC2Mutt::loadingFinished() if ( !(*iaddr).nickName().isEmpty() ) { std::cout << "alias " - << (*iaddr).nickName().lower().tqreplace( space, underscore ) + << (*iaddr).nickName().lower().replace( space, underscore ) << '\t' << name << " <" << (*iaddr).preferredEmail() << '>' << std::endl; } @@ -130,7 +130,7 @@ void KABC2Mutt::loadingFinished() KABC::DistributionList *list = manager.list( *iaddr ); if ( list ) { if ( !mQuery.isEmpty() ) { - bool match = ((*iaddr).tqfind(mQuery) > -1); + bool match = ((*iaddr).find(mQuery) > -1); if ( !match ) continue; } @@ -140,7 +140,7 @@ void KABC2Mutt::loadingFinished() continue; if ( mFormat == Aliases ) { - std::cout << "alias " << (*iaddr).tqreplace( TQRegExp( " " ), "_" ) + std::cout << "alias " << (*iaddr).replace( TQRegExp( " " ), "_" ) << '\t' << emails.join( "," ) << std::endl; } else { std::cout << emails.join( "," ) << '\t' << (*iaddr) << '\t' << std::endl; |