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

List:       kde-devel
Subject:    Re: default values for StringList kcfg-entry's
From:       Stefan Nikolaus <stefan.nikolaus () kdemail ! net>
Date:       2005-09-02 14:44:08
Message-ID: 200509021644.15123.stefan.nikolaus () kdemail ! net
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday, 30. August 2005 21:34, Andreas Pakulat wrote:
> Hi,
>
> is there a way to provide a default for StringList type entries in a
> .kcfg file? I tried to use
>
> <entry name="Langs" type="StringList">
>   <label>Languages</label>
>   <default>de fr en</default>
> </entry>
>
> But neither this, nor "," as separator works.

AFAICS in kdebase/kicker/applets/launcher/launcherapplet.kcfg it works with 
the comma separated list. Have a look at the generated code: prefs.cpp. 
There's an KConfigSkeletonItem, which is initialized with the set of strings 
located in the kcfg file.

Bye,
Stefan

[Attachment #5 (application/pgp-signature)]

 =

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<


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

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