Second YAY ! [KListView and KItemCategorizer]

04 Apr 2007

I have been hacking at night to write two new classes, that I hope will be useful to users, since I know from various users that this was a missed feature on our KDE file managers.

The idea is having QListView categorized, so having a model that allows sorting, KListView will categorize items. Everything is up to the developer, since the categorizing is done by a class named KItemCategorizer, what is an interface really.

The current patch I have is this one, but I’m still hacking on it, so it is nothing “for sure”. I know there are lots of things that can be polished, and the most important ones that I want to are: (a) Speeding-up of some methods, I think some of them are not good in time (b) Giving support for right-to-left languages.

I hope (a) won’t become a hell, but needs some thinking, and I really think (b) is trivial.

If you are curious you just can try to apply the patch, since it works pretty nice until you try to select a set of items, that is something in what I have to work right now 🙂

My first try (just for testing) was this screenshot:

The patch that you can read on this entry blog goes with this screenshot (with few changes on Dolphin’s code, maybe 5 lines or so):

comments powered by Disqus