diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-07 17:58:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-07 17:58:07 -0600 |
commit | 73299e0f9f30e4e65ec3c0295fd0f4f238cfd09d (patch) | |
tree | 9ca257d6e0694912a34a964d7766f2909bda92bd /libtdepim/kmailcompletion.cpp | |
parent | 87620f47926a6451accfd82c57558a99d1c4d21e (diff) | |
download | tdepim-73299e0f9f30e4e65ec3c0295fd0f4f238cfd09d.tar.gz tdepim-73299e0f9f30e4e65ec3c0295fd0f4f238cfd09d.zip |
Rename KComp to avoid conflicts with KDE4
Diffstat (limited to 'libtdepim/kmailcompletion.cpp')
-rw-r--r-- | libtdepim/kmailcompletion.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtdepim/kmailcompletion.cpp b/libtdepim/kmailcompletion.cpp index d7fcc8ce4..84640cb16 100644 --- a/libtdepim/kmailcompletion.cpp +++ b/libtdepim/kmailcompletion.cpp @@ -34,12 +34,12 @@ KMailCompletion::KMailCompletion() void KMailCompletion::clear() { m_keyMap.clear(); - KCompletion::clear(); + TDECompletion::clear(); } TQString KMailCompletion::makeCompletion( const TQString &string ) { - TQString match = KCompletion::makeCompletion( string ); + TQString match = TDECompletion::makeCompletion( string ); // this should be in postProcessMatch, but postProcessMatch is const and will not allow nextMatch if ( !match.isEmpty() ){ @@ -79,7 +79,7 @@ void KMailCompletion::addItemWithKeys( const TQString& email, int weight, const TQStringList &emailList = m_keyMap[ (*it) ]; //lookup email-list for given keyword if ( emailList.find( email ) == emailList.end() ) //add email if not there emailList.append( email ); - addItem( (*it),weight ); //inform KCompletion about keyword + addItem( (*it),weight ); //inform TDECompletion about keyword } } @@ -89,7 +89,7 @@ void KMailCompletion::postProcessMatches( TQStringList * pMatches )const if ( pMatches->isEmpty() ) return; - //KCompletion has found the keywords for us, we can now map them to mail-addr + //TDECompletion has found the keywords for us, we can now map them to mail-addr TQMap< TQString, bool > mailAddrDistinct; //TODO replace with TQSet in KDE4 for ( TQStringList::ConstIterator sit ( pMatches->begin() ), sEnd( pMatches->end() ); sit != sEnd; ++sit ) { const TQStringList &mailAddr = m_keyMap[ (*sit) ]; //get all mailAddr for this keyword |