summaryrefslogtreecommitdiffstats
path: root/kgamma
diff options
context:
space:
mode:
Diffstat (limited to 'kgamma')
-rw-r--r--kgamma/kcmkgamma/kgamma.cpp12
-rw-r--r--kgamma/kcmkgamma/kgamma.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/kgamma/kcmkgamma/kgamma.cpp b/kgamma/kcmkgamma/kgamma.cpp
index 2a129daf..8a9a33fd 100644
--- a/kgamma/kcmkgamma/kgamma.cpp
+++ b/kgamma/kcmkgamma/kgamma.cpp
@@ -56,7 +56,7 @@ extern "C"
}
KGamma::KGamma(TQWidget *parent, const char *name, const TQStringList&)
- :KCModule(parent,name)
+ :TDECModule(parent,name)
{
bool ok;
GammaCorrection = true;
@@ -291,7 +291,7 @@ void KGamma::load() {
/** Restore latest saved gamma values */
void KGamma::load(bool useDefaults) {
if (GammaCorrection) {
- KConfig *config = new KConfig("kgammarc");
+ TDEConfig *config = new TDEConfig("kgammarc");
config->setReadDefaults( useDefaults );
@@ -344,7 +344,7 @@ void KGamma::save() {
}
xv->setScreen(currentScreen);
- KConfig *config = new KConfig("kgammarc");
+ TDEConfig *config = new TDEConfig("kgammarc");
config->setGroup("SyncBox");
if ( syncbox->isChecked() ) config->writeEntry("sync", "yes");
else config->writeEntry("sync", "no");
@@ -385,7 +385,7 @@ void KGamma::defaults() {
}
bool KGamma::loadSettings() {
- KConfig *config = new KConfig("kgammarc");
+ TDEConfig *config = new TDEConfig("kgammarc");
config->setGroup("ConfigFile");
TQString ConfigFile( config->readEntry("use") );
config->setGroup("SyncBox");
@@ -402,7 +402,7 @@ bool KGamma::loadSettings() {
}
bool KGamma::loadUserSettings() {
- KConfig *config = new KConfig("kgammarc");
+ TDEConfig *config = new TDEConfig("kgammarc");
for (int i = 0; i < ScreenCount; i++) {
config->setGroup(TQString( "Screen %1" ).arg(i) );
@@ -606,7 +606,7 @@ extern "C"
if (ok) {
xv.setGammaLimits(0.4, 3.5);
float rgamma, ggamma, bgamma;
- KConfig *config = new KConfig("kgammarc");
+ TDEConfig *config = new TDEConfig("kgammarc");
for (int i = 0; i < xv._ScreenCount(); i++) {
xv.setScreen(i);
diff --git a/kgamma/kcmkgamma/kgamma.h b/kgamma/kcmkgamma/kgamma.h
index 132c349b..cae9b20c 100644
--- a/kgamma/kcmkgamma/kgamma.h
+++ b/kgamma/kcmkgamma/kgamma.h
@@ -25,7 +25,7 @@ class TQComboBox;
class XVidExtWrap;
class TDEProcess;
-class KGamma: public KCModule
+class KGamma: public TDECModule
{
Q_OBJECT