┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-02 23:56:22 +0200
committerPeter Penz <[email protected]>2012-05-02 23:57:04 +0200
commitaacf20282d9b7d78bda93ba946cdcf2e0fee5692 (patch)
tree738a8680f755b2800bb1921ca1d60a33b75c047b /src/kitemviews/kitemlistview.cpp
parentf158bf097a079cba181afa9ecc03e5eb20f3573a (diff)
Places Panel: Allow showing of hidden items
Diffstat (limited to 'src/kitemviews/kitemlistview.cpp')
-rw-r--r--src/kitemviews/kitemlistview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp
index a3fc2bafc..4bcdab105 100644
--- a/src/kitemviews/kitemlistview.cpp
+++ b/src/kitemviews/kitemlistview.cpp
@@ -922,6 +922,13 @@ void KItemListView::slotItemsInserted(const KItemRangeList& itemRanges)
}
}
+ // In case if items of the same group have been inserted before an item that
+ // currently represents the first item of the group, the group header of
+ // this item must be removed.
+ if (m_grouped && index + count < m_model->count()) {
+ updateGroupHeaderForWidget(m_visibleItems.value(index + count));
+ }
+
if (m_model->count() == count && m_activeTransactions == 0) {
// Check whether a scrollbar is required to show the inserted items. In this case
// the size of the layouter will be decreased before calling doLayout(): This prevents