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

List:       kde-panel-devel
Subject:    Re: configAccepted()
From:       Toussis Manolis <manolis () koppermind ! homelinux ! org>
Date:       2009-02-23 20:23:40
Message-ID: 200902232223.40156.manolis () koppermind ! homelinux ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Monday 23 February 2009 22:16:16 Aaron J. Seigo wrote:
> On Monday 23 February 2009, Toussis Manolis wrote:
> > I re-implementing in my applet the configAccepted() to store the
> > settings...
>
> configChanged() you mean? there is no configAccepted in Plasma::Applet. or
> are you connecting to configAccepted yourself?
Sorry this is not a re-implementation . It's an own slot.


>
> > The thing is that I came across a strange issue.
> > I run the applet if I invoke the config interface, and press ok...
> > configAccepted is called once. Then I close the applet , and
> > configAccepted is called once more. All the options are saved fine.
> >
> > If I run the applet and don't invoke the config interface, and the close
> > the applet. configAccepted() is called only on applet close, and all the
> > settings are reset, and are not saved with the current settings.
>
> obviously because the ui hasn't been set up and so has bogus values.

you 're right, I didn't look my code well, and I found the problem. 
I posted here , because i thought (wrongly) that it was a virtual function of 
applet.

>
> the question is why configAccepted is called on applet exit. is your code
> in playground so i can look at it? or somewhere else i can see it?
Because it is explicity called in ~applet. Sorry again for the post. :-)



[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'Arial'; font-size:11pt; font-weight:400; \
font-style:normal;">On Monday 23 February 2009 22:16:16 Aaron J. Seigo wrote:<br> \
&gt; On Monday 23 February 2009, Toussis Manolis wrote:<br> &gt; &gt; I \
re-implementing in my applet the configAccepted() to store the<br> &gt; &gt; \
settings...<br> &gt;<br>
&gt; configChanged() you mean? there is no configAccepted in Plasma::Applet. or<br>
&gt; are you connecting to configAccepted yourself?<br>
Sorry this is not a re-implementation . It's an own slot.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>&gt;<br> &gt; &gt; The thing is that I \
came across a strange issue.<br> &gt; &gt; I run the applet if I invoke the config \
interface, and press ok...<br> &gt; &gt; configAccepted is called once. Then I close \
the applet , and<br> &gt; &gt; configAccepted is called once more. All the options \
are saved fine.<br> &gt; &gt;<br>
&gt; &gt; If I run the applet and don't invoke the config interface, and the \
close<br> &gt; &gt; the applet. configAccepted() is called only on applet close, and \
all the<br> &gt; &gt; settings are reset, and are not saved with the current \
settings.<br> &gt;<br>
&gt; obviously because the ui hasn't been set up and so has bogus values.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>you 're right, I didn't look my code well, and I found the \
problem. <br> I posted here , because i thought (wrongly) that it was a virtual \
function of applet.<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>&gt;<br> &gt; the question is why \
configAccepted is called on applet exit. is your code<br> &gt; in playground so i can \
look at it? or somewhere else i can see it?<br> Because it is explicity called in \
~applet. Sorry again for the post. :-)<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p></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