┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemmodelbase.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-11-04 23:31:11 +0100
committerPeter Penz <[email protected]>2011-11-04 23:34:39 +0100
commit49d75cfe45860df18e34964a0d30196708935df8 (patch)
treea1531314480283ef956d94a824d8763b85d53cf5 /src/kitemviews/kitemmodelbase.h
parenteadbf920b5dffdf2d1548240c25ec2eaf835aad5 (diff)
Fix layout-issues when sorting by roles that are changed
When sorting is enabled for a role that gets changed e.g. because a value like the MIME-type is determined asynchronously, then the layout might get messed up. slotItemsMoved() has been adjusted to invalidate the sizehint-cache and to update the group-headers. BUG: 285542 FIXED-IN: 4.8.0
Diffstat (limited to 'src/kitemviews/kitemmodelbase.h')
-rw-r--r--src/kitemviews/kitemmodelbase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kitemviews/kitemmodelbase.h b/src/kitemviews/kitemmodelbase.h
index 693ffb763..edca15bd1 100644
--- a/src/kitemviews/kitemmodelbase.h
+++ b/src/kitemviews/kitemmodelbase.h
@@ -108,6 +108,12 @@ public:
*/
virtual QString roleDescription(const QByteArray& role) const;
+ /**
+ * @return List of group headers. Each list-item consists of the index of the item
+ * that represents the first item of a group and a value represented
+ * as QVariant. The value is shown by an instance of KItemListGroupHeader.
+ * Per default an empty list is returned.
+ */
virtual QList<QPair<int, QVariant> > groups() const;
/**