From kde-core-devel Thu Jul 26 12:13:42 2001 From: Harri Porten Date: Thu, 26 Jul 2001 12:13:42 +0000 To: kde-core-devel Subject: Re: RFC: KConfig changes for 3.0 X-MARC-Message: https://marc.info/?l=kde-core-devel&m=99614969902971 On Thu, 26 Jul 2001, Marc Mutz wrote: > On Wednesday 25 July 2001 19:28, David Faure wrote: > > On Wed, Jul 25, 2001 at 07:40:18AM -0700, Charles Samuels wrote: > > > In addition to Rob's comments, we should eliminate the obvious lack > > > of OO safety in KConfig and always explicitly set a group when > > > accessing a key. > > > > > > My personal favorite way is a group(QString) function that returns > > > a temporary KConfigGroup. > > > > > > In other words > > > > > > config->group("Some Group Name")->readEntry("Some Key"); > > > > This is an excellent, excellent idea. > > > I wonder if you have come across KConfigGroupSaver? ;-) It's certainly known to all parties involved. But finding a way to achieve the same functionality without the hassle of explictly instantiating an extra object would be nice indeed. Harri.