Say "hello" to categorization on list views
Anders Lund
anders at alweb.dk
Mon Feb 19 08:18:15 GMT 2007
On Monday 19 February 2007, Rafael Fernández López wrote:
> Hi all,
>
> As some users (and myself too) missed the categorization powerful tool for
> Konqueror/Dolphin and similars, I've started a bit on it. This new class
> (attached) is right now locally at kdeui/itemviews. The idea is that the
> list view, should inherit from this class, and of course, rewrite the
> method. This particularly is useful on the new class I'm writing:
> KListView. KListView will give all the benefits for drawing categorized
> items in the viewport, so a new list view that wants to add own
> categorization, the only thing have to do is inherit KListView and rewrite
> this method. As easy as that. On paintEvent() method at KListView, the
> model() will be asked if it is really a QSortFilterProxyModel. If so, it
> will ask this method with the corresponding
> QSortFilterProxyModel::sortRole() method.
>
> I would like to know what you think. It is working properly on my early
> tests.
We were discussing using a categorized listview in kate the other day (for the
documents list), and some user on irc offered an implementation, so to me
this looks fine.
--
Anders
www: http://www.alweb.dk
jabber: anderslund at jabber.dk
More information about the kde-core-devel
mailing list