summaryrefslogtreecommitdiffstats
path: root/kcontrol/kded
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/kded')
-rw-r--r--kcontrol/kded/kcmkded.cpp14
-rw-r--r--kcontrol/kded/kcmkded.h6
2 files changed, 10 insertions, 10 deletions
diff --git a/kcontrol/kded/kcmkded.cpp b/kcontrol/kded/kcmkded.cpp
index af606f5fd..eeccfb362 100644
--- a/kcontrol/kded/kcmkded.cpp
+++ b/kcontrol/kded/kcmkded.cpp
@@ -47,7 +47,7 @@ K_EXPORT_COMPONENT_FACTORY( kcm_kded, KDEDFactory( "kcmkded" ) )
KDEDConfig::KDEDConfig(TQWidget* parent, const char* name, const TQStringList &) :
- KCModule( KDEDFactory::instance(), parent, name )
+ TDECModule( KDEDFactory::instance(), parent, name )
{
TDEAboutData *about =
new TDEAboutData( I18N_NOOP( "kcmkded" ), I18N_NOOP( "TDE Service Manager" ),
@@ -110,7 +110,7 @@ KDEDConfig::KDEDConfig(TQWidget* parent, const char* name, const TQStringList &)
load();
}
-void setModuleGroup(KConfig *config, const TQString &filename)
+void setModuleGroup(TDEConfig *config, const TQString &filename)
{
TQString module = filename;
int i = module.findRev('/');
@@ -123,13 +123,13 @@ void setModuleGroup(KConfig *config, const TQString &filename)
config->setGroup(TQString("Module-%1").arg(module));
}
-bool KDEDConfig::autoloadEnabled(KConfig *config, const TQString &filename)
+bool KDEDConfig::autoloadEnabled(TDEConfig *config, const TQString &filename)
{
setModuleGroup(config, filename);
return config->readBoolEntry("autoload", true);
}
-void KDEDConfig::setAutoloadEnabled(KConfig *config, const TQString &filename, bool b)
+void KDEDConfig::setAutoloadEnabled(TDEConfig *config, const TQString &filename, bool b)
{
setModuleGroup(config, filename);
return config->writeEntry("autoload", b);
@@ -141,7 +141,7 @@ void KDEDConfig::load() {
void KDEDConfig::load( bool useDefaults ) {
- KConfig kdedrc("kdedrc", true, false);
+ TDEConfig kdedrc("kdedrc", true, false);
kdedrc.setReadDefaults( useDefaults );
_lvStartup->clear();
@@ -190,13 +190,13 @@ void KDEDConfig::save() {
TQString::fromLatin1( "kded/*.desktop" ),
true, true, files );
- KConfig kdedrc("kdedrc", false, false);
+ TDEConfig kdedrc("kdedrc", false, false);
for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it ) {
if ( KDesktopFile::isDesktopFile( *it ) ) {
- KConfig file( *it, false, false, "services" );
+ TDEConfig file( *it, false, false, "services" );
file.setGroup("Desktop Entry");
if (file.readBoolEntry("X-TDE-Kded-autoload")){
diff --git a/kcontrol/kded/kcmkded.h b/kcontrol/kded/kcmkded.h
index 1e9e42e72..86f5aaf94 100644
--- a/kcontrol/kded/kcmkded.h
+++ b/kcontrol/kded/kcmkded.h
@@ -28,7 +28,7 @@ class KListView;
class TQStringList;
class TQPushButton;
-class KDEDConfig : public KCModule
+class KDEDConfig : public TDECModule
{
Q_OBJECT
public:
@@ -49,8 +49,8 @@ protected slots:
void slotItemChecked(TQCheckListItem *item);
void getServiceStatus();
- bool autoloadEnabled(KConfig *config, const TQString &filename);
- void setAutoloadEnabled(KConfig *config, const TQString &filename, bool b);
+ bool autoloadEnabled(TDEConfig *config, const TQString &filename);
+ void setAutoloadEnabled(TDEConfig *config, const TQString &filename, bool b);
private:
KListView *_lvLoD;