on xenial help sign in
LVWPH: cull the header item when not on view to save some painting
commit9e913d8007ab11031025c217b4019f33047fd908 authorAlbert Astals Cid <albert.astals@canonical.com> dateMon 27 Jun 2016, 18:41 (10 years ago) parent69519eda5ac758
1 file changed+4
plugins/Dash/listviewwithpageheader.cpp+4
plugins/Dash/listviewwithpageheader.cpp+4
@@ -1335,6 +1335,10 @@ void ListViewWithPageHeader::layout()
13351335 }
13361336 }
13371337 }
1338+ if (m_headerItem) {
1339+ const bool cullHeader = m_headerItem->y() + m_headerItem->height() < contentY();
1340+ QQuickItemPrivate::get(m_headerItem)->setCulled(cullHeader);
1341+ }
13381342 m_inLayout = false;
13391343}
13401344