@@ -376,13 +376,18 @@ void ListViewWithPageHeader::positionAtBeginning()
379+static inline bool uFuzzyCompare(qreal r1, qreal r2)
381+ return qFuzzyCompare(r1, r2) || (qFuzzyIsNull(r1) && qFuzzyIsNull(r2));
379void ListViewWithPageHeader::showHeader()
384void ListViewWithPageHeader::showHeader()
381 if (!m_headerItem)
386 if (!m_headerItem)
384 const auto to = qMax(-minYExtent(), contentY() - m_headerItem->height() + m_headerItemShownHeight);
389 const auto to = qMax(-minYExtent(), contentY() - m_headerItem->height() + m_headerItemShownHeight);
385− if (!uFuzzyCompare(to, contentY()) {
390+ if (!uFuzzyCompare(to, contentY())) {
386 const bool headerShownByItsOwn = contentY() < m_headerItem->y() + m_headerItem->height();
391 const bool headerShownByItsOwn = contentY() < m_headerItem->y() + m_headerItem->height();
387 if (headerShownByItsOwn && m_headerItemShownHeight == 0) {
392 if (headerShownByItsOwn && m_headerItemShownHeight == 0) {
388 // We are not clipping since we are just at the top of the viewport
393 // We are not clipping since we are just at the top of the viewport
@@ -485,11 +490,6 @@ void ListViewWithPageHeader::componentComplete()
485 polish();
490 polish();
488−static inline bool uFuzzyCompare(qreal r1, qreal r2)
490− return qFuzzyCompare(r1, r2) || (qFuzzyIsNull(r1) && qFuzzyIsNull(r2));
493void ListViewWithPageHeader::viewportMoved(Qt::Orientations orient)
493void ListViewWithPageHeader::viewportMoved(Qt::Orientations orient)
495 // Check we are not being taken down and don't paint anything
495 // Check we are not being taken down and don't paint anything