Hi,<br><br>I have been hacking with KStyle. After some attempts, I think I have the best solution, and the cleanest one. The idea is that categories at KListView can be drawn by KStyles, as well as item joining (that will come later). The patch I attach is only for categories, and is not fully finished (still need to call to sizeFromContents).
<br><br>KListView when drawing categories will check if what we have is a KStyle or not. If we have, it will call directly to drawControl. On the other hand, if what we have is a QStyle, it will go and draw a by-default category, as before.
<br><br>As you see on the patch I've done dummy changes to plastik theme. Just for testing reasons.<br><br>Why this solution is nice ?<br><br>- We can extend ControlElement to our needs. If needed. (needed for categories and joining items, probably tomorrow for something else elsewhere).
<br>- We keep separated QStyle and KStyle on our methods (drawControl).<br><br>Other solutions drove me to some problems... but this one seems to be the cleaner and the best one.<br><br>Waiting for your comments.<br><br clear="all">
<br>Bye and thanks,<br>Rafael Fernández López.