diff options
| author | Peter Penz <[email protected]> | 2011-09-19 20:34:17 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-09-19 20:35:30 +0200 |
| commit | 06f057d385f3924235697942ebc73aa1956515c2 (patch) | |
| tree | 0e4f447fc9f7f5e2028b0172efa1c601fb23a3c5 /src/kitemviews/kitemlistviewlayouter.cpp | |
| parent | f9bcd0a47cbdf0806c35a82856efdbe06279fb82 (diff) | |
Draw styled header for the details-view
Diffstat (limited to 'src/kitemviews/kitemlistviewlayouter.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistviewlayouter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistviewlayouter.cpp b/src/kitemviews/kitemlistviewlayouter.cpp index 78688c941..eaf175a51 100644 --- a/src/kitemviews/kitemlistviewlayouter.cpp +++ b/src/kitemviews/kitemlistviewlayouter.cpp @@ -362,7 +362,8 @@ void KItemListViewLayouter::updateVisibleIndexes() prevRowIndex -= m_columnCount; } - while (prevRowIndex >= 0 && m_itemBoundingRects[prevRowIndex].bottom() >= m_offset) { + const qreal top = m_offset + m_headerHeight; + while (prevRowIndex >= 0 && m_itemBoundingRects[prevRowIndex].bottom() >= top) { m_firstVisibleIndex = prevRowIndex; prevRowIndex -= m_columnCount; } |
