|
|
|
@ -1139,7 +1139,7 @@ static const char *toStr(ESliderStyle s)
|
|
|
|
|
else \
|
|
|
|
|
CFG.writeEntry(#ENTRY, opts.ENTRY);
|
|
|
|
|
|
|
|
|
|
bool static writeConfig(KConfig *cfg, const Options &opts, const Options &def, bool exportingStyle=false)
|
|
|
|
|
bool static writeConfig(TDEConfig *cfg, const Options &opts, const Options &def, bool exportingStyle=false)
|
|
|
|
|
{
|
|
|
|
|
if(!cfg)
|
|
|
|
|
{
|
|
|
|
@ -1152,9 +1152,9 @@ bool static writeConfig(KConfig *cfg, const Options &opts, const Options &def, b
|
|
|
|
|
sprintf(filename, "%s/"TQTC_FILE, xdg);
|
|
|
|
|
|
|
|
|
|
#if [[[TQT_VERSION IS DEPRECATED]]] >= 0x040000
|
|
|
|
|
KConfig defCfg(filename, KConfig::SimpleConfig);
|
|
|
|
|
TDEConfig defCfg(filename, TDEConfig::SimpleConfig);
|
|
|
|
|
#else
|
|
|
|
|
KConfig defCfg(filename, false, false);
|
|
|
|
|
TDEConfig defCfg(filename, false, false);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
return writeConfig(&defCfg, opts, def, exportingStyle);
|
|
|
|
@ -1163,7 +1163,7 @@ bool static writeConfig(KConfig *cfg, const Options &opts, const Options &def, b
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
#if [[[TQT_VERSION IS DEPRECATED]]] >= 0x040000
|
|
|
|
|
KConfigGroup config(cfg, TQTC_GROUP);
|
|
|
|
|
TDEConfigGroup config(cfg, TQTC_GROUP);
|
|
|
|
|
#else
|
|
|
|
|
cfg->setGroup(TQTC_GROUP);
|
|
|
|
|
#endif
|
|
|
|
|