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