KMenu title is navigable with the keyboard

Thomas Lübking thomas.luebking at web.de
Wed Nov 18 18:29:15 GMT 2009


Am Wednesday 18 November 2009 schrieb Albert Astals Cid:
> Also as Christoph that's a kind of hidden feature so maybe not all styles
> support it (seeing on oxygen, one of the major ones outside Qt does not
> probably means a lot don't)

I just tested a few styles.

Support:
---
Bespin
CDE
Cleanlooks
Motif
Plastique
Skulpture

NO support:
---
Gtk+ (Qt4.6 beta)
Keramik (undersupported and afaik not compiled by def. anyway)
Oxygen (~1 week old)
Phase (i volunteer to fix that)
QtCurve (0.67.2)
Windows (who cares ;-)

Also, as you mentioned this will enforce ::setSeparatorsCollapsible(false)
I just ported a (dynamic) KMenu here to a QMenu in this regard and i had to 
take care on several redundant separators (while before just relying on the 
collapsing) - this might affact quite some apps ;-)

So i guess the "best" solution would be to make the KMenu title a widget, 
reimplement the painting to use the entitled separator calling the UI style 
and fix the "broken" styles.

Thomas




More information about the kde-core-devel mailing list