[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Uninitialized config values
From:       Dominik Haumann <dhaumann () kde ! org>
Date:       2013-11-17 13:01:38
Message-ID: 1933086.FThDmpzlee () eriador
[Download RAW message or body]

On Sunday 17 November 2013 00:44:40 Kevin Funk wrote:
> Am Sonntag, 17. November 2013, 01:19:05 schrieb Alex Turbov:
> > On Sun, Nov 17, 2013 at 1:13 AM, Dominik Haumann <dhaumann@kde.org> wrote:
> > > Now your question how to fix this: Initialize all variables of the
> > > global
> > > instances. The initialization value does not matter, because it's
> > > immediately
> > > overwritten by readConfig().
> > 
> > alternative way: use .kcfg file and generator...
> > when configuration became fatty C++ code became even more fatty (and worse
> > maintainable)...
> > 
> > "Do not send a human to do a machine's job"
> > (c) Agent Smith
> > 
> > :)
> 
> Hey,
> 
> I proposed that a while ago already. I think the problem was Kate's
> distinction between global properties and "non-global" properties (e.g. ones
> that might get overwritten by modelines and such) -- afair.
> 
> KConfigXT doesn't really provide infrastructure (speak: API) for having this
> kind of cascading config settings.

Correct, I also think this is a problem.

It would probably not be too hard to write a script that generates these 
config classes, though.

Greetings,
Dominik
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic