diff options
| author | Peter Penz <[email protected]> | 2011-11-04 23:31:11 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-11-04 23:34:39 +0100 |
| commit | 49d75cfe45860df18e34964a0d30196708935df8 (patch) | |
| tree | a1531314480283ef956d94a824d8763b85d53cf5 /src/kitemviews/kitemlistsizehintresolver_p.h | |
| parent | eadbf920b5dffdf2d1548240c25ec2eaf835aad5 (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/kitemlistsizehintresolver_p.h')
| -rw-r--r-- | src/kitemviews/kitemlistsizehintresolver_p.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistsizehintresolver_p.h b/src/kitemviews/kitemlistsizehintresolver_p.h index f4f65eccb..1345e0321 100644 --- a/src/kitemviews/kitemlistsizehintresolver_p.h +++ b/src/kitemviews/kitemlistsizehintresolver_p.h @@ -28,6 +28,9 @@ class KItemListView; +/** + * @brief Calculates and caches the sizehints of items in KItemListView. + */ class LIBDOLPHINPRIVATE_EXPORT KItemListSizeHintResolver { public: @@ -37,7 +40,7 @@ public: void itemsInserted(int index, int count); void itemsRemoved(int index, int count); - void itemsMoved(int from, int to, int count); + void itemsMoved(int index, int count); void itemsChanged(int index, int count, const QSet<QByteArray>& roles); void clearCache(); |
