on xenial help sign in
LVWPH: cull the header item when not on view to save some painting
9e913d8Albert Astals Cid
plugins/Dash/listviewwithpageheader.cpp+4
@@ -1335,6 +1335,10 @@ void ListViewWithPageHeader::layout()
1335 }
1335 }
1336 }
1336 }
1337 }
1337 }
1338+ if (m_headerItem) {
1339+ const bool cullHeader = m_headerItem->y() + m_headerItem->height() < contentY();
1340+ QQuickItemPrivate::get(m_headerItem)->setCulled(cullHeader);
1341+ }
1338 m_inLayout = false;
1342 m_inLayout = false;
1339}
1343}
1340
1344