From 06f057d385f3924235697942ebc73aa1956515c2 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 19 Sep 2011 20:34:17 +0200 Subject: Draw styled header for the details-view --- src/kitemviews/kitemlistviewlayouter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kitemviews/kitemlistviewlayouter.cpp') 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; } -- cgit v1.3