diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 15:29:24 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-12 15:39:34 +0900 |
commit | 51230c05dc0d15dd4d6e6cce1020c6bac3a5cdd3 (patch) | |
tree | 289d1261319b7c151c0f11c7917c057aa754026a /kcontrol/componentchooser/componentchooser.cpp | |
parent | fa284a459858f2255c485240121f7cd1cc7d17a0 (diff) | |
download | tdebase-51230c05dc0d15dd4d6e6cce1020c6bac3a5cdd3.tar.gz tdebase-51230c05dc0d15dd4d6e6cce1020c6bac3a5cdd3.zip |
Use TDESimpleConfig
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kcontrol/componentchooser/componentchooser.cpp')
-rw-r--r-- | kcontrol/componentchooser/componentchooser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kcontrol/componentchooser/componentchooser.cpp b/kcontrol/componentchooser/componentchooser.cpp index 011b977c9..3ad2073b1 100644 --- a/kcontrol/componentchooser/componentchooser.cpp +++ b/kcontrol/componentchooser/componentchooser.cpp @@ -33,7 +33,7 @@ #include <tdelocale.h> #include <tdemessagebox.h> #include <kopenwith.h> -#include <ksimpleconfig.h> +#include <tdesimpleconfig.h> #include <tdestandarddirs.h> #include <ktrader.h> #include <kurlrequester.h> @@ -425,7 +425,7 @@ ComponentChooser::ComponentChooser(TQWidget *parent, const char *name): TQStringList services=TDEGlobal::dirs()->findAllResources( "data","kcm_componentchooser/*.desktop",false,true,dummy); for (TQStringList::Iterator it=services.begin();it!=services.end();++it) { - KSimpleConfig cfg(*it); + TDESimpleConfig cfg(*it); ServiceChooser->insertItem(new MyListBoxItem(cfg.readEntry("Name",i18n("Unknown")),(*it))); } @@ -443,7 +443,7 @@ void ComponentChooser::slotServiceSelected(TQListBoxItem* it) { if (somethingChanged) { if (KMessageBox::questionYesNo(this,i18n("<qt>You changed the default component of your choice. Do you want to save that change now?</qt>"),TQString::null,KStdGuiItem::save(),KStdGuiItem::discard())==KMessageBox::Yes) save(); } - KSimpleConfig cfg(static_cast<MyListBoxItem*>(it)->File); + TDESimpleConfig cfg(static_cast<MyListBoxItem*>(it)->File); ComponentDescription->setText(cfg.readEntry("Comment",i18n("No description available"))); ComponentDescription->setMinimumSize(ComponentDescription->sizeHint()); @@ -534,7 +534,7 @@ void ComponentChooser::load() { configWidget->tqt_cast( "CfgPlugin" ) ); if( plugin ) { - KSimpleConfig cfg(latestEditedService); + TDESimpleConfig cfg(latestEditedService); plugin->load( &cfg ); } } @@ -547,7 +547,7 @@ void ComponentChooser::save() { configWidget->tqt_cast( "CfgPlugin" ) ); if( plugin ) { - KSimpleConfig cfg(latestEditedService); + TDESimpleConfig cfg(latestEditedService); plugin->save( &cfg ); } } |