PATCH: KNode - KNHdrViewItem

Scott Wheeler scott at slackorama.net
Tue Jul 9 01:30:35 BST 2002


Sorting for articles has been broken in KNode for a couple of days.  I looked 
at the CVS logs and this happened when KNLVItemBase switched its base class 
from KListViewItem to KFolderTreeItem (from libkdenetwork).  

However, it appears that KFolderTreeItem is primarily intended to be used on 
the list of folders on the left and as such the compare() function is 
overridden to sort that list.  This really messed up the sorting of messages.

I'm not sure this is the "right" fix, but what I did was to override compare() 
in KNHdrViewItem (a subclass of KNLVItemBase) to restore the default 
QListViewItem behavior (which was being used before, and in fact works).

Ok, quiz, who followed all of the QListViewItem subclasses? :-)

Anyway, I'll commit this tomorrow if noone objects.

-Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knhdrviewitem.patch
Type: text/x-diff
Size: 1136 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020708/3d0816e2/attachment.patch>


More information about the kde-core-devel mailing list