QML applet - write config

Jan Grulich jgrulich at redhat.com
Thu May 9 12:20:12 UTC 2013


Dne 9.5.2013 13:53, Giorgos Tsiapaliokas napsal(a):
> Hello,
>
> do you have a main.xml file in your plasmoid?
>
> In order to be able to write something into the plasma config file
> you need a xml like this one,
>
I have but I didn't know it's necessary to add an entry even for saving 
some configuration from the applet.
> <?xml version="1.0" encoding="UTF-8"?>
> <kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
>      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>      xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
> http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
>     <kcfgfile name=""/>
>     <group name="General">
>         <entry name="testfoo" type="string">
>             <label>bla bla</label>
>             <default>somevalue</default>
>         </entry>
>     </group>
> </kcfg>
>
> If you don't have a xml like this one, when you do plasmoid.writeConfig
> nothing will happen.
>
> Regards,
> Giorgos
>
> -- 
> Giorgos Tsiapaliokas (terietor)
>
> terietor.org <http://terietor.org>
>

Now it finally works, thanks a lot :)

-- 
Jan Grulich
Red Hat Czech, s.r.o
jgrulich at redhat.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130509/14a0cc56/attachment.html>


More information about the Plasma-devel mailing list