diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kabc/kabc2mutt | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4,
however Qt3 builds are OK. Any alterations this commit makes to kdepim
behaviour under Qt3 are unintentional and should be fixed.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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; } |