[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: KListView started, and almost ready
From: "=?UTF-8?Q?Rafael_Fern=C3=A1ndez_L=C3=B3pez?=" <ereslibre () gmail ! com>
Date: 2007-04-04 0:31:11
Message-ID: 93f85fee0704031731l336d5300k460f1a3269b92993 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hi all,
I want to introduce two new classes I would like to commit, if no one
disagrees:
- [kdelibs/kdeui/itemviews] KListView: This class inherits QListView, and
its purpose is to draw correctly new categories.
- [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.
The patch is at http://www.ereslibre.es/kdelibs.diff
Writing a 5-line-patch to Dolphin I had this results:
http://www.ereslibre.es/categorization.png
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.
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.
Bye and thank you,
Rafael Fernández López.
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...
[Attachment #3 (text/html)]
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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic