┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/private/kitemlistsizehintresolver.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2013-07-05 19:42:39 +0200
committerFrank Reininghaus <[email protected]>2013-07-05 19:42:39 +0200
commit837be34333bc1b7d85649418366f26d64a6d6b2c (patch)
tree267434e574ead1e14c5e6cd16ae710463c67d3ca /src/kitemviews/private/kitemlistsizehintresolver.h
parent786cea007678c3fa086a45392eb6745d54d6e7c4 (diff)
Keep the "item size hints" of moved items
It's quite expensive to re-calculate them, so we should better just move them to the correct position, rather than throwing them away. REVIEW: 111399
Diffstat (limited to 'src/kitemviews/private/kitemlistsizehintresolver.h')
-rw-r--r--src/kitemviews/private/kitemlistsizehintresolver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/private/kitemlistsizehintresolver.h b/src/kitemviews/private/kitemlistsizehintresolver.h
index 5ec5f4a21..486f9b631 100644
--- a/src/kitemviews/private/kitemlistsizehintresolver.h
+++ b/src/kitemviews/private/kitemlistsizehintresolver.h
@@ -40,7 +40,7 @@ public:
void itemsInserted(const KItemRangeList& itemRanges);
void itemsRemoved(const KItemRangeList& itemRanges);
- void itemsMoved(int index, int count);
+ void itemsMoved(const KItemRange& range, const QList<int>& movedToIndexes);
void itemsChanged(int index, int count, const QSet<QByteArray>& roles);
void clearCache();