diff options
| author | Peter Penz <[email protected]> | 2012-02-06 23:26:20 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-02-06 23:31:49 +0100 |
| commit | 5369ee6819a26d9d3f106521c525c03f81a943ce (patch) | |
| tree | b6a31372f7fa6cd58aac1c7faeca6d5d96d50e32 /src/kitemviews/kitemlistviewlayouter.cpp | |
| parent | 7af39fb960352e0504153c627db0615d80758ebe (diff) | |
Group header improvements
- Use a simpler background and colors as suggested by Martin Zilz.
This is just an early draft, I need to post some comparison screenshots to
Martin for review.
- Fixes of some layout issues that have been revealed because of adjusting
the group header heights.
- More clever animation/no-animation detection when doing listview-property
changes in parallel.
Diffstat (limited to 'src/kitemviews/kitemlistviewlayouter.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistviewlayouter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistviewlayouter.cpp b/src/kitemviews/kitemlistviewlayouter.cpp index 60822adc7..4e7a91087 100644 --- a/src/kitemviews/kitemlistviewlayouter.cpp +++ b/src/kitemviews/kitemlistviewlayouter.cpp @@ -221,6 +221,8 @@ QRectF KItemListViewLayouter::itemRect(int index) const QRectF KItemListViewLayouter::groupHeaderRect(int index) const { + const_cast<KItemListViewLayouter*>(this)->doLayout(); + const QRectF firstItemRect = itemRect(index); QPointF pos = firstItemRect.topLeft(); if (pos.isNull()) { |
