style not drawing menu section/separator if 1st in menu

René J. V. Bertin rjvbertin at gmail.com
Mon Mar 20 17:45:43 UTC 2017


Kai Uwe Broulik wrote:

> Separators cannot be at the beginning or end of a menu and there can't be two
> next to each other. Section is what you want to use for labeled entries but
> for styles that don't implement that they'll be regular separators.

I know, those are the functional differences. At the implementation level, 
sections are texted separators, and styles that don't implement those will (a 
priori) render just the separator.

The style I use (QtCurve) renders texted separators just fine, but not at the 
top of a menu. That's the issue I'm trying to understand. It's as it it has told 
Qt that it doesn't do texted separators and that there's thus no need to process 
sections (texted separators) at the menu top.

The annoying bit here is that I'm fly fishing in a muddy pool. QtCurve is quite 
a mess code-wise (most styles I've seen are but not to this extent), and I have 
yet to find a clear, succinct but complete tutorial how to write a style.

R.



More information about the Plasma-devel mailing list