KToggleAction in menus
Matthew Woehlke
mw_triad at users.sourceforge.net
Wed Feb 18 22:43:31 GMT 2009
David Faure wrote:
> We all agreed, back then, that for showing/hiding statusbars/toolbars, not
> using setCheckedState() was the best solution (checkbox, no changing text).
>
> However let's take another example: the standard full-screen action (e.g. in konqueror).
> It changes its text to "Exit Full Screen Mode", which is nice and clear (no ambiguity
> as to whether this is about action or state -- definitely action). The icon changes, too.
> But then the checkbox is useless. Ideally, KToggleAction would hide the checkbox
> when setCheckedState is used -- since we all agree that having both is broken
> (redundant and possibly confusing).
>
> I don't see how to implement that, however. setCheckable(false) would break the usage
> of the action in toolbars - we need the action to have two states... we just don't
> want the checkmark for that action in menus. Any ideas?
"[ ] Full Screen Mode".
"[X] Full Screen Mode".
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
"Nobody expects the traditional Bourne shell!"
More information about the kde-core-devel
mailing list