┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemlistview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-10-29 19:50:15 +0200
committerPeter Penz <[email protected]>2011-10-29 19:52:05 +0200
commitd062256db2c0590b7628ad7dcb9e720a5ef4f4a9 (patch)
tree1920189854157b987253179064739480a44e68ec /src/kitemviews/kfileitemlistview.h
parent74bc3cac2530031c0ec78fc5039342ac0f077eb7 (diff)
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.
Diffstat (limited to 'src/kitemviews/kfileitemlistview.h')
-rw-r--r--src/kitemviews/kfileitemlistview.h9
1 files changed, 9 insertions, 0 deletions
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;