AppletScript & configAccepted
Petri Damstén
petri.damsten at gmail.com
Fri Sep 12 05:24:08 CEST 2008
On Thursday 11 September 2008 17:47:27 Aaron J. Seigo wrote:
> On Thursday 11 September 2008, Petri Damstén wrote:
> > Applets connect to apply & ok to know when user accepted config, but if
> > AppletScript uses configxml there seems to be no way to do that? Maybe
> > configAccepted signal in applet? I guess this could be good for Applets
> > too so they don't have to rely parent to have ok/apply.
>
> there is a configChanged() signal from KCoreConfigSkeleton as well; we
> might be able to use that. it gets emitted when writeConfig() is called...
> soooo ... we could do sth like:
>
> * connect d->configXml configChanged to a configChanged signal (or slot?)
> * create dialog using d->configXml
> * writeConfig gets called by the dialog (for free) and that triggers things
patch for:
- configChanged functions in Applet and AppletScript
- connected to configXml configChanged() and applyClicked/okClicked (for C++
applets)
- package typo mainconfiggui -> mainconfigui
- and some Q_UNUSED to remove warnings
Petri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configChanged.diff
Type: text/x-patch
Size: 4757 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080912/357b2b84/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080912/357b2b84/attachment.sig
More information about the Plasma-devel
mailing list