Hi all,<br><br>I want to introduce two new classes I would like to commit, if no one disagrees:<br><br>- [kdelibs/kdeui/itemviews] KListView: This class inherits QListView, and its purpose is to draw correctly new categories.
<br>- [kdelibs/kdeui/itemviews] KItemCategorizer: The categorizer interface. KListView will ask if a categorizer was set, if it was, it will ask for each item in which category is it (asking for the role that was sorted the model, that must be a QSortFilterProxyModel). It needs to be reimplemented for different views.
<br><br>The patch is at <a href="http://www.ereslibre.es/kdelibs.diff">http://www.ereslibre.es/kdelibs.diff</a><br><br>Writing a 5-line-patch to Dolphin I had this results: <a href="http://www.ereslibre.es/categorization.png">
http://www.ereslibre.es/categorization.png</a><br><br>Well, as you will have noticed I still have some work to do, like handle hovered items and drawing categories correctly (making new lines), what will need the reimplementation of visualRect at KListView.
<br><br>Before doing such work, I wanted to introduce you this class and know your thoughts and comments. I think this has been a long-missed feature on our list views and now we can handle it easily.<br clear="all"> <br>
Bye and thank you,<br>Rafael Fernández López.<br><br>PS: For handling joining items I will need to hack a bit on KStyle, let's see how hard that gets... I hope not so much...<br>