[Bug 251161] wrong date sort order in `find messages' window

Thomas Fischer fischer at unix-ag.uni-kl.de
Tue Nov 23 20:33:54 GMT 2010


https://bugs.kde.org/show_bug.cgi?id=251161





--- Comment #4 from Thomas Fischer <fischer unix-ag uni-kl de>  2010-11-23 21:33:53 ---
(In reply to comment #3)
> The problem is that the list widget uses a lexicographical comparison by
> default. To solve this issue, instead of using QTreeWidgetItem objects to
> represent search results, a new class has to derived here which re-implements
> the sorting function (more specifically, how two entries are compared).
> [...]
> In function SearchWindow::slotAddMsg, use this class instead of QTreeWidgetItem
> when adding more results.
> Maybe I'll test and refine this code later today...

My simple code above would not work, as the date strings are localized and not
easy to compare. A better implementation would be to use nice model/view
approach which has already been implemented in trunk and 4.5beta1 (not tested
myself, yet).

Therefore I propose to close this bug as soon as Kontact / KMail 4.5 becomes
stable. Maybe mark this bug until then as WONTFIX?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list