summaryrefslogtreecommitdiffstats
path: root/certmanager/conf/appearanceconfigwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/conf/appearanceconfigwidget.cpp')
-rw-r--r--certmanager/conf/appearanceconfigwidget.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/certmanager/conf/appearanceconfigwidget.cpp b/certmanager/conf/appearanceconfigwidget.cpp
index 57a767419..96c0bfffc 100644
--- a/certmanager/conf/appearanceconfigwidget.cpp
+++ b/certmanager/conf/appearanceconfigwidget.cpp
@@ -66,7 +66,7 @@ using namespace Kleo;
class CategoryListViewItem : public TQListViewItem
{
public:
- CategoryListViewItem( TQListView* lv, TQListViewItem* prev, const KConfigBase& config )
+ CategoryListViewItem( TQListView* lv, TQListViewItem* prev, const TDEConfigBase& config )
: TQListViewItem( lv, prev ) {
setName( config.readEntry( "Name", i18n("<unnamed>") ) );
@@ -85,7 +85,7 @@ public:
mDirty = false;
}
- void save( KConfigBase& config ) {
+ void save( TDEConfigBase& config ) {
config.writeEntry( "Name", text( 0 ) );
config.writeEntry( "foreground-color", mForegroundColor );
config.writeEntry( "background-color", mBackgroundColor );
@@ -235,19 +235,19 @@ void AppearanceConfigWidget::slotDefaultClicked()
void AppearanceConfigWidget::load()
{
categoriesLV->clear();
- KConfig * config = Kleo::CryptoBackendFactory::instance()->configObject();
+ TDEConfig * config = Kleo::CryptoBackendFactory::instance()->configObject();
if ( !config )
return;
TQStringList groups = config->groupList().grep( TQRegExp( "^Key Filter #\\d+$" ) );
for ( TQStringList::const_iterator it = groups.begin() ; it != groups.end() ; ++it ) {
- KConfigGroup cfg( config, *it );
+ TDEConfigGroup cfg( config, *it );
(void) new CategoryListViewItem( categoriesLV, categoriesLV->lastItem(), cfg );
}
}
void AppearanceConfigWidget::save()
{
- KConfig * config = Kleo::CryptoBackendFactory::instance()->configObject();
+ TDEConfig * config = Kleo::CryptoBackendFactory::instance()->configObject();
if ( !config )
return;
// We know (assume) that the groups in the config object haven't changed,
@@ -263,7 +263,7 @@ void AppearanceConfigWidget::save()
TQListViewItemIterator lvit( categoriesLV );
for ( TQStringList::const_iterator it = groups.begin() ; it != groups.end() && lvit.current(); ++it, ++lvit ) {
CategoryListViewItem* item = static_cast<CategoryListViewItem*>(lvit.current() );
- KConfigGroup cfg( config, *it );
+ TDEConfigGroup cfg( config, *it );
item->save( cfg );
}
config->sync();