[PATCH]KConfigGroup::groupList() kind of broken

Thomas Braxton kde.braxton at gmail.com
Tue Nov 20 08:58:16 GMT 2007


On 11/20/07, Oswald Buddenhagen <ossi at kde.org> wrote:
> On Tue, Nov 20, 2007 at 02:27:45AM -0600, Thomas Braxton wrote:
> > just one question. if you have two groups [group1/subgroup] and
> > [group2/subgroup] with your changes to name() both return "subgroup"
> > how do you know which one you are working with?
> >
> you don't. that's how tree structures work. ;)
> that's why i said that having fullName() as an additional function still
> makes sense. otoh, how would the path be returned, given that the
> separator should be opaque? as a string list? i think the better
> solution would be in fact a kconfiggroup::parentGroup() function. if it
> turns out to be needed somewhere, that is ...
>
well it would be simple enough to add, since KConfigGroupPrivate
already has mParent.




More information about the kde-core-devel mailing list