diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/searchmanager.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/searchmanager.cpp')
-rw-r--r-- | kaddressbook/searchmanager.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kaddressbook/searchmanager.cpp b/kaddressbook/searchmanager.cpp index 1919dfea8..0cd23b5a1 100644 --- a/kaddressbook/searchmanager.cpp +++ b/kaddressbook/searchmanager.cpp @@ -29,12 +29,12 @@ using namespace KAB; SearchManager::SearchManager( KABC::AddressBook *ab, - QObject *parent, const char *name ) - : QObject( parent, name ), mAddressBook( ab ) + TQObject *parent, const char *name ) + : TQObject( parent, name ), mAddressBook( ab ) { } -void SearchManager::search( const QString &pattern, const KABC::Field::List &fields, Type type ) +void SearchManager::search( const TQString &pattern, const KABC::Field::List &fields, Type type ) { mPattern = pattern; mFields = fields; @@ -129,14 +129,14 @@ void SearchManager::search( const QString &pattern, const KABC::Field::List &fie if ( !found ) { // search over custom fields - const QStringList customs = (*it).customs(); + const TQStringList customs = (*it).customs(); - QStringList::ConstIterator customIt( customs.begin() ); - const QStringList::ConstIterator customEndIt( customs.end() ); + TQStringList::ConstIterator customIt( customs.begin() ); + const TQStringList::ConstIterator customEndIt( customs.end() ); for ( ; customIt != customEndIt; ++customIt ) { int pos = (*customIt).find( ':' ); if ( pos != -1 ) { - const QString value = (*customIt).mid( pos + 1 ); + const TQString value = (*customIt).mid( pos + 1 ); if ( type == StartsWith && value.startsWith( pattern, false ) ) { mContacts.append( *it ); break; @@ -170,7 +170,7 @@ void SearchManager::reload() #ifdef KDEPIM_NEW_DISTRLISTS -void KAB::SearchManager::setSelectedDistributionList( const QString &name ) +void KAB::SearchManager::setSelectedDistributionList( const TQString &name ) { if ( mSelectedDistributionList == name ) return; @@ -183,9 +183,9 @@ KPIM::DistributionList::List KAB::SearchManager::distributionLists() const return mDistributionLists; } -QStringList KAB::SearchManager::distributionListNames() const +TQStringList KAB::SearchManager::distributionListNames() const { - QStringList lst; + TQStringList lst; KPIM::DistributionList::List::ConstIterator it( mDistributionLists.begin() ); const KPIM::DistributionList::List::ConstIterator endIt( mDistributionLists.end() ); for ( ; it != endIt; ++it ) { |