[PATCH] KRadioAction toggled() signal

Simon Hausmann hausmann at kde.org
Thu Oct 24 15:40:17 BST 2002


On Thu, Oct 24, 2002 at 04:31:20PM +0200, Scott Wheeler wrote:
> 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.

I don't see why you need the emitToggled method :) You're in the
same class, signals are protected by default, you can just do 
emit action->fooBar();

Simon




More information about the kde-core-devel mailing list