summaryrefslogtreecommitdiffstats
path: root/client/config
diff options
context:
space:
mode:
Diffstat (limited to 'client/config')
-rw-r--r--client/config/configdialog.cc2
-rwxr-xr-xclient/config/polyesterconfig.cc18
-rwxr-xr-xclient/config/polyesterconfig.h10
3 files changed, 15 insertions, 15 deletions
diff --git a/client/config/configdialog.cc b/client/config/configdialog.cc
index 75f6623..4e6db04 100644
--- a/client/config/configdialog.cc
+++ b/client/config/configdialog.cc
@@ -1,5 +1,5 @@
#include <kdialog.h>
-#include <klocale.h>
+#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './configdialog.ui'
**
diff --git a/client/config/polyesterconfig.cc b/client/config/polyesterconfig.cc
index 24c5ce8..7f322fb 100755
--- a/client/config/polyesterconfig.cc
+++ b/client/config/polyesterconfig.cc
@@ -10,9 +10,9 @@
// Please see the header file for copyright and license information.
//////////////////////////////////////////////////////////////////////////////
-#include <kconfig.h>
-#include <klocale.h>
-#include <kglobal.h>
+#include <tdeconfig.h>
+#include <tdelocale.h>
+#include <tdeglobal.h>
#include <tqbuttongroup.h>
#include <tqgroupbox.h>
#include <tqradiobutton.h>
@@ -29,11 +29,11 @@
// -------------
// Constructor
-polyesterConfig::polyesterConfig(KConfig* config, TQWidget* parent)
+polyesterConfig::polyesterConfig(TDEConfig* config, TQWidget* parent)
: TQObject(parent), config_(0), dialog_(0) {
// create the configuration object
- config_ = new KConfig("kwinpolyesterrc");
- KGlobal::locale()->insertCatalogue("kwin_polyester_config");
+ config_ = new TDEConfig("twinpolyesterrc");
+ TDEGlobal::locale()->insertCatalogue("twin_polyester_config");
// create and show the configuration dialog
dialog_ = new ConfigDialog(parent);
@@ -104,7 +104,7 @@ void polyesterConfig::selectionChanged(int) {
// ------
// Load configuration data
-void polyesterConfig::load(KConfig*) {
+void polyesterConfig::load(TDEConfig*) {
config_->setGroup("General");
TQString value = config_->readEntry("TitleAlignment", "AlignHCenter");
@@ -141,7 +141,7 @@ void polyesterConfig::load(KConfig*) {
// ------
// Save configuration data
-void polyesterConfig::save(KConfig*) {
+void polyesterConfig::save(TDEConfig*) {
config_->setGroup("General");
TQRadioButton *button = (TQRadioButton*)dialog_->titlealign->selected();
@@ -197,7 +197,7 @@ void polyesterConfig::defaults() {
//////////////////////////////////////////////////////////////////////////////
extern "C" {
- TQObject* allocate_config(KConfig* config, TQWidget* parent) {
+ TQObject* allocate_config(TDEConfig* config, TQWidget* parent) {
return (new polyesterConfig(config, parent));
}
}
diff --git a/client/config/polyesterconfig.h b/client/config/polyesterconfig.h
index 34c84ce..cd7e05c 100755
--- a/client/config/polyesterconfig.h
+++ b/client/config/polyesterconfig.h
@@ -32,28 +32,28 @@
#include <tqobject.h>
-class KConfig;
+class TDEConfig;
class ConfigDialog;
class polyesterConfig : public TQObject {
TQ_OBJECT
public:
- polyesterConfig(KConfig* config, TQWidget* parent);
+ polyesterConfig(TDEConfig* config, TQWidget* parent);
~polyesterConfig();
signals:
void changed();
public slots:
- void load(KConfig*);
- void save(KConfig*);
+ void load(TDEConfig*);
+ void save(TDEConfig*);
void defaults();
protected slots:
void selectionChanged(int);
private:
- KConfig *config_;
+ TDEConfig *config_;
ConfigDialog *dialog_;
};