summaryrefslogtreecommitdiffstats
path: root/kaddressbook/searchmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/searchmanager.cpp')
-rw-r--r--kaddressbook/searchmanager.cpp20
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 ) {