[Kwintv] Removal of ToggleViewAction

Richard Moore rich at xmelegance.org
Wed Oct 1 21:29:23 CEST 2003


On Monday 29 September 2003 19:37, Dirk Ziegelmeier wrote:
>
> That's right. But there is no other code showing or hiding the sidebar, so
> that should be no problem. If neccessary, one could create a

The trouble is that since we support dynamically loaded plugins, you can't 
ever know that. In addition we have a DCOP interface. Both of these make it 
possible for the sidebar to be shown or hidden without the toggle getting 
updated.

> viewChanged(bool) (probably from show/hideEvent()) signal and connect it to
> action->setChecked(bool).
>
> BTW: Is there a KToggleAction that can generically track the visibility
> state of a widget?

Yes. ToggleViewAction - that's why i wrote it. :-)

Rich.



More information about the kwintv mailing list