Desktop Slideshow Settings
Steven Sroka
steven.sroka at live.ca
Mon Dec 6 01:38:33 CET 2010
Sorry for the late reply, I just switched to KDE 4.6 Beta 1 and it took some time to get stable and fast enough to set up the development dependancies. I'm try to prevent the slideshow wallpaper from changing everytime a user clicks 'OK' after clicking 'Apply'.
I'm assuming the settingsChanged() signal is emitted twice, once by 'Apply' and once by 'OK'. Is there anyway to stop the signal from emitting from the 'OK' button if the settings aren't changed (because the 'Apply' button has already emitted the signal and done all the necessary work)?
From: aseigo at kde.org
To: plasma-devel at kde.org
Subject: Re: Desktop Slideshow Settings
Date: Mon, 29 Nov 2010 16:07:03 -0800
On Monday, November 29, 2010, Steven Sroka wrote:
> Pic of window and buttons attached. I think it is created in image.cpp
aha. the ok/apply/cancel buttons. (this is one time when a picture was only
worth 5 words. ;)
those are handled automatically by KConfigDialog. when the settingsChanged
signal is emitted, Apply becomes enabled. the state is reset after Apply is
clicked. (this is actually covered in the Plasma::Wallpaper apidox, but
sometimes that's more like a buried treasure than a useful learning tool.)
Cancel and Ok are always there.
assuming you are wanting to do something with Apply, what you are looking for
is probably the Image::modified() slot in image.cpp. take a look at the things
that connect to it / call it.
or are you trying to do someting else with the buttons in that area?
--
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43
KDE core developer sponsored by Qt Development Frameworks
_______________________________________________
Plasma-devel mailing list
Plasma-devel at kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20101205/7a0af9b6/attachment.html
More information about the Plasma-devel
mailing list