KMenu title is navigable with the keyboard

Albert Astals Cid aacid at kde.org
Wed Nov 18 18:41:21 GMT 2009


A Dimecres, 18 de novembre de 2009, Thomas Lübking va escriure:
> 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.

It's already a widget, the problem is that if you make it a widget then you 
need my patch so that keyboard navigation works.

Albert

> 
> Thomas
> 





More information about the kde-core-devel mailing list