[Kde-pim] KCal::Calendar sortEvents

Allen Winter winter at kde.org
Thu Oct 2 13:48:49 BST 2008


On Wednesday 01 October 2008 00:22:25 ron wrote:
> Hi all,
> I was working on the issues identified in Bug 170894: 	"month printout is hard 
> to read"...
> One of the problems is that the calendar event sorting 'sortEvents()' is not 
> returning the event in date & time order -  only date.  While it's easy 
> enough to fix this in the printing it will certainly pop up in several places 
> and is better to take care of in one place.
> 
> My thought was to add another eventSortField enum entry called 
> EventSortStartDateTime.
> 
> Question: is this the right thing to do?
> 
> Using EventSortStartDate compares two KDateTime objects but the resulting 
> sorted list is only in date & summary order (the first sort done).
> 
I think the right thing to do is fix EventSortStartDate to take the date & time into consideration.
My bad.  I wrote this stuff.

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list