[PATCH] KRadioAction toggled() signal

Scott Wheeler wheeler at kde.org
Thu Oct 24 15:31:20 BST 2002


On Thursday 24 October 2002 11:08, David Faure wrote:

> Looks wrong - a "manual" call to setChecked(true) from the application will
> emit toggled (for this same action) (which might trigger some slot in the
> app, etc. ...). We have removed such behaviour from all KActions, it would
> be wrong to reintroduce it here. I suggest emitting toggled from some code
> that only happens when KAction itself decides to uncheck the 'other'
> actions.

How about this one?

I couldn't think of a way of doing this without adding a (in the case 
protected) method.  But, this works and fits with what you suggested above.

Cheers,

-Scott

-- 
There are 10 types of people in the world: Those who understand binary, and 
those who don't.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kaction.patch
Type: text/x-diff
Size: 1515 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021024/29b95169/attachment.patch>


More information about the kde-core-devel mailing list