setupGui strange interaction with KConfig

Tobias Koenig tokoe at kde.org
Mon Jan 24 10:45:14 GMT 2005


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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050124/27a185d1/attachment.sig>


More information about the kde-core-devel mailing list