[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: setupGui strange interaction with KConfig
From: Tobias Koenig <tokoe () kde ! org>
Date: 2005-01-24 10:45:14
Message-ID: 20050124104513.GA1048 () ghostdog ! localnet
[Download RAW message or body]
On Sun, Jan 23, 2005 at 05:10:16PM +0100, Ingo Klöcker wrote:
> On Sunday 23 January 2005 15:30, Tobias Koenig wrote:
Hi Ingo,
> > The problem is, that most methods like 'readValue' expect a KConfig*
> > and not a KConfigBase*, so you can't really use KConfigGroup in real
> > life...
>
> Correct usage is
> myKey = group.readValue( "MyKey" );
... but often you want to pass this 'grouped' config object to another
method which reads the value for you; and this method doesn't accept the
KConfigGroup object...
When you start writing code from scratch you can use your proposed
solution of course, but for fixing exiting code it's a PITA.
Ciao,
Tobias
--
Separate politics from religion and economy!
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic