Revision 744215

Go back to digest for 9th December 2007

Optimization in KDE Base

Rafael Fernández López committed changes in /trunk/KDE/kdelibs/kdeui/itemviews:

Tiding up the _AMAZING_ patch proposed by John Tapsell. His idea was to place the categories by an int instead of a boolean, depending on if the value is negative, 0 or positive you know that the category is before, the same, or after for two given indexes.

This simplifies amazingly the KCategorizedSortFilterProxyModel. This patch is fundamental for .0. We get rid out of some annoying bugs, so this is a bugfix also (like selections when changing sortings not being kept correctly).

File Changes

Modified 3 files
  • /trunk/KDE/kdelibs/kdeui/itemviews
  •   /kcategorizedsortfilterproxymodel.cpp
  •   /kcategorizedsortfilterproxymodel.h
  •   /kcategorizedsortfilterproxymodel_p.h
3 files changed in total