From aacf20282d9b7d78bda93ba946cdcf2e0fee5692 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 2 May 2012 23:56:22 +0200 Subject: Places Panel: Allow showing of hidden items --- src/kitemviews/kitemlistview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/kitemviews/kitemlistview.cpp') 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 -- cgit v1.3