From 83130d8e16a4d6af4b5b8ef0451a95462599ffc1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 14 Feb 2012 22:58:24 +0100 Subject: Details view: Fix filter issue with sibblings When the filter has been enabled, the sibblings got not updated. Explicitely update the sibblings when inserting, removing or moving items. For layouting implicitely update the sibblings only for recycled widgets. --- src/kitemviews/kitemlistview.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kitemlistview.h') diff --git a/src/kitemviews/kitemlistview.h b/src/kitemviews/kitemlistview.h index dbb746d92..118ed2f03 100644 --- a/src/kitemviews/kitemlistview.h +++ b/src/kitemviews/kitemlistview.h @@ -498,10 +498,12 @@ private: /** * Updates the siblings-information for all visible items that are inside - * the range of \p firstIndex and \p lastIndex. + * the range of \p firstIndex and \p lastIndex. If firstIndex or lastIndex + * is smaller than 0, the siblings-information for all visible items gets + * updated. * @see KItemListWidget::setSiblingsInformation() */ - void updateSiblingsInformation(int firstIndex, int lastIndex); + void updateSiblingsInformation(int firstIndex = -1, int lastIndex = -1); /** * Helper method for updateExpansionIndicators(). -- cgit v1.3