From 86d8364ac704bdc8ad2dfcf52307d9626cfac567 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:37:21 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- kaddressbook/common/filter.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'kaddressbook/common/filter.cpp') diff --git a/kaddressbook/common/filter.cpp b/kaddressbook/common/filter.cpp index 932f6f10..1872ecea 100644 --- a/kaddressbook/common/filter.cpp +++ b/kaddressbook/common/filter.cpp @@ -121,7 +121,7 @@ const TQStringList &Filter::categories() const return mCategoryList; } -void Filter::save( KConfig *config ) +void Filter::save( TDEConfig *config ) { config->writeEntry( "Name", mName ); config->writeEntry( "Enabled", mEnabled ); @@ -129,7 +129,7 @@ void Filter::save( KConfig *config ) config->writeEntry( "MatchRule", (int)mMatchRule ); } -void Filter::restore( KConfig *config ) +void Filter::restore( TDEConfig *config ) { mName = config->readEntry( "Name", "" ); mEnabled = config->readBoolEntry( "Enabled", true ); @@ -139,10 +139,10 @@ void Filter::restore( KConfig *config ) mIsEmpty = false; } -void Filter::save( KConfig *config, const TQString &baseGroup, Filter::List &list ) +void Filter::save( TDEConfig *config, const TQString &baseGroup, Filter::List &list ) { { - KConfigGroupSaver s( config, baseGroup ); + TDEConfigGroupSaver s( config, baseGroup ); // remove the old filters uint count = config->readNumEntry( "Count" ); @@ -155,31 +155,31 @@ void Filter::save( KConfig *config, const TQString &baseGroup, Filter::List &lis Filter::List::Iterator iter; for ( iter = list.begin(); iter != list.end(); ++iter ) { if ( !(*iter).mInternal ) { - KConfigGroupSaver s( config, TQString( "%1_%2" ).arg( baseGroup ) + TDEConfigGroupSaver s( config, TQString( "%1_%2" ).arg( baseGroup ) .arg( index ) ); (*iter).save( config ); index++; } } - KConfigGroupSaver s( config, baseGroup ); + TDEConfigGroupSaver s( config, baseGroup ); config->writeEntry( "Count", index ); } -Filter::List Filter::restore( KConfig *config, const TQString &baseGroup ) +Filter::List Filter::restore( TDEConfig *config, const TQString &baseGroup ) { Filter::List list; int count = 0; Filter f; { - KConfigGroupSaver s( config, baseGroup ); + TDEConfigGroupSaver s( config, baseGroup ); count = config->readNumEntry( "Count", 0 ); } for ( int i = 0; i < count; i++ ) { { - KConfigGroupSaver s( config, TQString( "%1_%2" ).arg( baseGroup ).arg( i ) ); + TDEConfigGroupSaver s( config, TQString( "%1_%2" ).arg( baseGroup ).arg( i ) ); f.restore( config ); } -- cgit v1.2.3