From d062256db2c0590b7628ad7dcb9e720a5ef4f4a9 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 29 Oct 2011 19:50:15 +0200 Subject: Fix grouping-issue with not visible sorting roles It must be assured that the data for a sorting role always is determined even it is not shown as "additional info" in the view. --- src/kitemviews/kfileitemlistview.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/kitemviews/kfileitemlistview.h') diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h index 125c86142..d90d8ecf9 100644 --- a/src/kitemviews/kfileitemlistview.h +++ b/src/kitemviews/kfileitemlistview.h @@ -81,6 +81,7 @@ protected: protected slots: virtual void slotItemsRemoved(const KItemRangeList& itemRanges); + virtual void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous); private slots: void triggerVisibleIndexRangeUpdate(); @@ -95,6 +96,14 @@ private: void updateTimersInterval(); void updateMinimumRolesWidths(); + /** + * Applies the roles defined by KItemListView::visibleRoles() to the + * KFileItemModel and KFileItemModelRolesUpdater. As the model does not + * distinct between visible and invisible roles also internal roles + * are applied that are mandatory for having a working KFileItemModel. + */ + void applyRolesToModel(); + private: Layout m_itemLayout; -- cgit v1.3.1