|
|
@ -35,7 +35,7 @@
|
|
|
|
/*! This is the default constructor of the class Settings. */
|
|
|
|
/*! This is the default constructor of the class Settings. */
|
|
|
|
Settings::Settings()
|
|
|
|
Settings::Settings()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kconfig = new KConfig("kpowersaverc", true );
|
|
|
|
kconfig = new TDEConfig("kpowersaverc", true );
|
|
|
|
kde = new KDE_Settings();
|
|
|
|
kde = new KDE_Settings();
|
|
|
|
load_kde();
|
|
|
|
load_kde();
|
|
|
|
load_general_settings();
|
|
|
|
load_general_settings();
|
|
|
@ -352,7 +352,7 @@ action Settings::mapActionToType (TQString _action) {
|
|
|
|
* \retval false if there was a error/problem
|
|
|
|
* \retval false if there was a error/problem
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void Settings::load_kde(){
|
|
|
|
void Settings::load_kde(){
|
|
|
|
KConfig *_kconfig = new KConfig("kcmdisplayrc", true );
|
|
|
|
TDEConfig *_kconfig = new TDEConfig("kcmdisplayrc", true );
|
|
|
|
|
|
|
|
|
|
|
|
/* KDE settings [DisplayEnergy] from kcmdisplayrc */
|
|
|
|
/* KDE settings [DisplayEnergy] from kcmdisplayrc */
|
|
|
|
if(_kconfig->hasGroup("DisplayEnergy")) {
|
|
|
|
if(_kconfig->hasGroup("DisplayEnergy")) {
|
|
|
@ -363,7 +363,7 @@ void Settings::load_kde(){
|
|
|
|
kde->displayPowerOff = _kconfig->readNumEntry("displayPowerOff", 19);
|
|
|
|
kde->displayPowerOff = _kconfig->readNumEntry("displayPowerOff", 19);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete _kconfig;
|
|
|
|
delete _kconfig;
|
|
|
|
_kconfig = new KConfig("kdesktoprc", true );
|
|
|
|
_kconfig = new TDEConfig("kdesktoprc", true );
|
|
|
|
/* KDE settings [ScreenSaver] from kdesktoprc */
|
|
|
|
/* KDE settings [ScreenSaver] from kdesktoprc */
|
|
|
|
if(_kconfig->hasGroup("ScreenSaver")) {
|
|
|
|
if(_kconfig->hasGroup("ScreenSaver")) {
|
|
|
|
_kconfig->setGroup("ScreenSaver");
|
|
|
|
_kconfig->setGroup("ScreenSaver");
|
|
|
|