┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistviewlayouter.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-09-19 20:34:17 +0200
committerPeter Penz <[email protected]>2011-09-19 20:35:30 +0200
commit06f057d385f3924235697942ebc73aa1956515c2 (patch)
tree0e4f447fc9f7f5e2028b0172efa1c601fb23a3c5 /src/kitemviews/kitemlistviewlayouter.cpp
parentf9bcd0a47cbdf0806c35a82856efdbe06279fb82 (diff)
Draw styled header for the details-view
Diffstat (limited to 'src/kitemviews/kitemlistviewlayouter.cpp')
-rw-r--r--src/kitemviews/kitemlistviewlayouter.cpp3
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;
}