diff options
| author | Peter Penz <[email protected]> | 2012-02-14 22:58:24 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-02-14 23:00:48 +0100 |
| commit | 83130d8e16a4d6af4b5b8ef0451a95462599ffc1 (patch) | |
| tree | 5258e64ebc15d1c5fd9126b3fffcfa65adab3aae /src/kitemviews/kitemlistview.h | |
| parent | 55f46ceb9ca128655f2f7859966b7c6d0c50f2ed (diff) | |
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.
Diffstat (limited to 'src/kitemviews/kitemlistview.h')
| -rw-r--r-- | src/kitemviews/kitemlistview.h | 6 |
1 files changed, 4 insertions, 2 deletions
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(). |
