diff options
Diffstat (limited to 'kabc/kabc2mutt')
-rw-r--r-- | kabc/kabc2mutt/kabc2mutt.cpp | 10 | ||||
-rw-r--r-- | kabc/kabc2mutt/kabc2mutt.h | 5 |
2 files changed, 8 insertions, 7 deletions
diff --git a/kabc/kabc2mutt/kabc2mutt.cpp b/kabc/kabc2mutt/kabc2mutt.cpp index b86521dd5..7e10dc32e 100644 --- a/kabc/kabc2mutt/kabc2mutt.cpp +++ b/kabc/kabc2mutt/kabc2mutt.cpp @@ -29,8 +29,8 @@ static std::ostream & operator<< ( std::ostream &os, const TQString &s ); -KABC2Mutt::KABC2Mutt( TQObject *parent, const char *name ) - : TQObject( parent, name ), mFormat( Aliases ), +KABC2Mutt::KABC2Mutt( TQObject *tqparent, const char *name ) + : TQObject( tqparent, name ), mFormat( Aliases ), mIgnoreCase( false ), mAllAddresses( false ), mAlternateKeyFormat( false ), mAddressBook( 0 ) @@ -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.find(mQuery, 0, mIgnoreCase) > -1) || - ((*iaddr).preferredEmail().find( mQuery, 0, mIgnoreCase ) > -1 ); + bool match = (name.tqfind(mQuery, 0, mIgnoreCase) > -1) || + ((*iaddr).preferredEmail().tqfind( mQuery, 0, mIgnoreCase ) > -1 ); if ( !match ) continue; } @@ -130,7 +130,7 @@ void KABC2Mutt::loadingFinished() KABC::DistributionList *list = manager.list( *iaddr ); if ( list ) { if ( !mQuery.isEmpty() ) { - bool match = ((*iaddr).find(mQuery) > -1); + bool match = ((*iaddr).tqfind(mQuery) > -1); if ( !match ) continue; } diff --git a/kabc/kabc2mutt/kabc2mutt.h b/kabc/kabc2mutt/kabc2mutt.h index ebe4f53fd..855b48dbd 100644 --- a/kabc/kabc2mutt/kabc2mutt.h +++ b/kabc/kabc2mutt/kabc2mutt.h @@ -22,15 +22,16 @@ #include <kabc/stdaddressbook.h> -class KABC2Mutt : public QObject +class KABC2Mutt : public TQObject { Q_OBJECT + TQ_OBJECT public: enum Format { Aliases, Query }; - KABC2Mutt( TQObject *parent, const char *name = 0 ); + KABC2Mutt( TQObject *tqparent, const char *name = 0 ); void setQuery( const TQString &query ) { mQuery = query; } void setFormat( Format format ) { mFormat = format; } |