[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: QML applet - write config
From: Jan Grulich <jgrulich () redhat ! com>
Date: 2013-05-09 12:20:12
Message-ID: 518B947C.2010301 () redhat ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@redhat.com
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dne 9.5.2013 13:53, Giorgos
Tsiapaliokas napsal(a):<br>
</div>
<blockquote
cite="mid:CAODYyLZDL5YHiTz4KrG3UxQ-bqb4KSaNm-AANmEzqhavXE8DYw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div><br>
</div>
<div>do you have a main.xml file in your plasmoid?</div>
<div><br>
</div>
<div style="">In order to be able to write something into the
plasma config file</div>
<div style="">you need a xml like this one,</div>
<div style=""><br>
</div>
</div>
</blockquote>
I have but I didn't know it's necessary to add an entry even for
saving some configuration from the applet.<br>
<blockquote
cite="mid:CAODYyLZDL5YHiTz4KrG3UxQ-bqb4KSaNm-AANmEzqhavXE8DYw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div><?xml version="1.0" encoding="UTF-8"?></div>
<div><kcfg xmlns="<a moz-do-not-send="true"
href="http://www.kde.org/standards/kcfg/1.0">http://www.kde.org/standards/kcfg/1.0</a>"</div>
<div> xmlns:xsi="<a moz-do-not-send="true"
href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" </div>
<div> xsi:schemaLocation="<a moz-do-not-send="true"
href="http://www.kde.org/standards/kcfg/1.0">http://www.kde.org/standards/kcfg/1.0</a></div>
<div> <a moz-do-not-send="true"
href="http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">http://www.kde.org/standards/kcfg/1.0/kcfg.xsd</a>"></div>
<div> <kcfgfile name=""/></div>
<div> <group name="General"></div>
<div> <entry name="testfoo" \
type="string"></div>
<div> <label>bla \
bla</label></div>
<div> \
<default>somevalue</default></div> <div> \
</entry></div> <div> </group></div>
<div></kcfg></div>
<div class="gmail_extra">
<div><br>
</div>
<div style="">If you don't have a xml like this one, when
you do plasmoid.writeConfig</div>
<div style="">nothing will happen.</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<blockquote
cite="mid:CAODYyLZDL5YHiTz4KrG3UxQ-bqb4KSaNm-AANmEzqhavXE8DYw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div class="gmail_extra">
<div style="">Regards,</div>
<div style="">Giorgos</div>
<div><br>
</div>
-- <br>
<div dir="ltr">Giorgos Tsiapaliokas (terietor)<br>
<br>
<a moz-do-not-send="true" href="http://terietor.org"
target="_blank">terietor.org</a></div>
</div>
</div>
</div>
<br>
</blockquote>
<br>
Now it finally works, thanks a lot :)<br>
<pre class="moz-signature" cols="72">--
Jan Grulich
Red Hat Czech, s.r.o
<a class="moz-txt-link-abbreviated" \
href="mailto:jgrulich@redhat.com">jgrulich@redhat.com</a></pre> </body>
</html>
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic