summaryrefslogtreecommitdiffstats
path: root/kaddressbook/common/filter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/common/filter.cpp')
-rw-r--r--kaddressbook/common/filter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kaddressbook/common/filter.cpp b/kaddressbook/common/filter.cpp
index ccac46ef..13e5f5fc 100644
--- a/kaddressbook/common/filter.cpp
+++ b/kaddressbook/common/filter.cpp
@@ -29,12 +29,12 @@
#include "filter.h"
Filter::Filter()
- : mName( QString::null ), mMatchRule( Matching ), mEnabled( true ),
+ : mName( TQString::null ), mMatchRule( Matching ), mEnabled( true ),
mInternal( false ), mIsEmpty( true )
{
}
-Filter::Filter( const QString &name )
+Filter::Filter( const TQString &name )
: mName( name ), mMatchRule( Matching ), mEnabled( true ),
mInternal( false ), mIsEmpty( false )
{
@@ -44,14 +44,14 @@ Filter::~Filter()
{
}
-void Filter::setName( const QString &name )
+void Filter::setName( const TQString &name )
{
mName = name;
mIsEmpty = false;
}
-const QString &Filter::name() const
+const TQString &Filter::name() const
{
return mName;
}
@@ -74,7 +74,7 @@ void Filter::apply( KABC::Addressee::List &addresseeList )
bool Filter::filterAddressee( const KABC::Addressee &a ) const
{
- QStringList::ConstIterator iter;
+ TQStringList::ConstIterator iter;
iter = mCategoryList.begin();
// empty filter always matches
@@ -109,14 +109,14 @@ bool Filter::isEnabled() const
return mEnabled;
}
-void Filter::setCategories( const QStringList &list )
+void Filter::setCategories( const TQStringList &list )
{
mCategoryList = list;
mIsEmpty = false;
}
-const QStringList &Filter::categories() const
+const TQStringList &Filter::categories() const
{
return mCategoryList;
}
@@ -139,7 +139,7 @@ void Filter::restore( KConfig *config )
mIsEmpty = false;
}
-void Filter::save( KConfig *config, const QString &baseGroup, Filter::List &list )
+void Filter::save( KConfig *config, const TQString &baseGroup, Filter::List &list )
{
{
KConfigGroupSaver s( config, baseGroup );
@@ -147,7 +147,7 @@ void Filter::save( KConfig *config, const QString &baseGroup, Filter::List &list
// remove the old filters
uint count = config->readNumEntry( "Count" );
for ( uint i = 0; i < count; ++i )
- config->deleteGroup( QString( "%1_%2" ).arg( baseGroup ).arg( i ) );
+ config->deleteGroup( TQString( "%1_%2" ).arg( baseGroup ).arg( i ) );
}
@@ -155,7 +155,7 @@ void Filter::save( KConfig *config, const QString &baseGroup, Filter::List &list
Filter::List::Iterator iter;
for ( iter = list.begin(); iter != list.end(); ++iter ) {
if ( !(*iter).mInternal ) {
- KConfigGroupSaver s( config, QString( "%1_%2" ).arg( baseGroup )
+ KConfigGroupSaver s( config, TQString( "%1_%2" ).arg( baseGroup )
.arg( index ) );
(*iter).save( config );
index++;
@@ -166,7 +166,7 @@ void Filter::save( KConfig *config, const QString &baseGroup, Filter::List &list
config->writeEntry( "Count", index );
}
-Filter::List Filter::restore( KConfig *config, const QString &baseGroup )
+Filter::List Filter::restore( KConfig *config, const TQString &baseGroup )
{
Filter::List list;
int count = 0;
@@ -179,15 +179,15 @@ Filter::List Filter::restore( KConfig *config, const QString &baseGroup )
for ( int i = 0; i < count; i++ ) {
{
- KConfigGroupSaver s( config, QString( "%1_%2" ).arg( baseGroup ).arg( i ) );
+ KConfigGroupSaver s( config, TQString( "%1_%2" ).arg( baseGroup ).arg( i ) );
f.restore( config );
}
list.append( f );
}
- const QStringList cats = KABPrefs::instance()->customCategories();
- for ( QStringList::ConstIterator it = cats.begin(); it != cats.end(); ++it ) {
+ const TQStringList cats = KABPrefs::instance()->customCategories();
+ for ( TQStringList::ConstIterator it = cats.begin(); it != cats.end(); ++it ) {
Filter filter;
filter.mName = *it;
filter.mEnabled = true;