on xenial help sign in
Different showheader animation
commit32c643b74ec7e23e51c1e3ac4306223843d37ea3 authorAlbert Astals <albert.astals@canonical.com> dateThu 13 Jun 2013, 09:45 (13 years ago) parent625af9a
1 file changed+6−2
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+6−2
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+6−2
@@ -319,8 +319,12 @@ void ListViewWithPageHeader::viewportMoved(Qt::Orientations orient)
319319 }
320320 }
321321 // We will be changing the clip item, need to accomadate for it
322− // otherwise we move the firstItem down/up twice
323− diff += oldHeaderItemShownHeight - m_headerItemShownHeight;
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())
325+ diff += oldHeaderItemShownHeight - m_headerItemShownHeight;
326+ else
327+ diff = -diff;
324328 }
325329 if (!m_visibleItems.isEmpty()) {
326330 updateClipItem();