diff options
| author | Peter Penz <[email protected]> | 2012-02-22 18:28:11 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-02-22 18:31:03 +0100 |
| commit | dbc5fd7a491f95ca4084a113d0f902ea975478fd (patch) | |
| tree | f9c43d6008e48189f39bd58cd7f0982a5f177065 /src/kitemviews/kitemlistviewlayouter.cpp | |
| parent | bdd0fdf2460232fe17b0e54e42fcda4cc18b811a (diff) | |
Fix alternate backgrounds when enabling grouping
Up to now the alternating backgrounds just have been calculated by
checking whether the item index is odd. This does not work well when
grouping is enabled: In this case the alternate background color
of the first item of a group should stay consistent.
Diffstat (limited to 'src/kitemviews/kitemlistviewlayouter.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistviewlayouter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistviewlayouter.cpp b/src/kitemviews/kitemlistviewlayouter.cpp index 744914929..d8b5796ec 100644 --- a/src/kitemviews/kitemlistviewlayouter.cpp +++ b/src/kitemviews/kitemlistviewlayouter.cpp @@ -340,6 +340,14 @@ void KItemListViewLayouter::markAsDirty() m_dirty = true; } + +#ifndef QT_NO_DEBUG + bool KItemListViewLayouter::isDirty() + { + return m_dirty; + } +#endif + void KItemListViewLayouter::doLayout() { if (m_dirty) { |
