on xenial help sign in
Different showheader animation
32c643bAlbert Astals
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+6−2
@@ -319,8 +319,12 @@ void ListViewWithPageHeader::viewportMoved(Qt::Orientations orient)
319 }
319 }
320 }
320 }
321 // We will be changing the clip item, need to accomadate for it
321 // We will be changing the clip item, need to accomadate for it
322− // otherwise we move the firstItem down/up twice
322+ // otherwise we move the firstItem down/up twice (unless the
323+ // show header animation is running, where we want a different effect)
324+ if (!m_headerShowAnimation->isRunning())
323− diff += oldHeaderItemShownHeight - m_headerItemShownHeight;
325+ diff += oldHeaderItemShownHeight - m_headerItemShownHeight;
326+ else
327+ diff = -diff;
324 }
328 }
325 if (!m_visibleItems.isEmpty()) {
329 if (!m_visibleItems.isEmpty()) {
326 updateClipItem();
330 updateClipItem();