@@ -139,6 +139,9 @@ void ListViewWithPageHeader::ListItem::setCulled(bool culled)
139 QQuickItemPrivate::get(m_item)->setCulled(culled);
139 QQuickItemPrivate::get(m_item)->setCulled(culled);
140 if (m_sectionItem)
140 if (m_sectionItem)
141 QQuickItemPrivate::get(m_sectionItem)->setCulled(culled);
141 QQuickItemPrivate::get(m_sectionItem)->setCulled(culled);
143+ QQmlContext *itemContext = QQmlEngine::contextForObject(m_item)->parentContext();
144+ itemContext->setContextProperty(QLatin1String("culled"), QVariant::fromValue<bool>(culled));
144ListViewWithPageHeader::ListViewWithPageHeader()
147ListViewWithPageHeader::ListViewWithPageHeader()
@@ -849,6 +852,7 @@ void ListViewWithPageHeader::itemCreated(int modelIndex, QObject *object)
849 QQmlContext *context = QQmlEngine::contextForObject(item)->parentContext();
852 QQmlContext *context = QQmlEngine::contextForObject(item)->parentContext();
850 context->setContextProperty(QLatin1String("ListViewWithPageHeader"), this);
853 context->setContextProperty(QLatin1String("ListViewWithPageHeader"), this);
851 context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
854 context->setContextProperty(QLatin1String("heightToClip"), QVariant::fromValue<int>(0));
855+ context->setContextProperty(QLatin1String("culled"), QVariant::fromValue<bool>(false));
852 if (modelIndex == m_asyncRequestedIndex) {
856 if (modelIndex == m_asyncRequestedIndex) {
853 createItem(modelIndex, false);
857 createItem(modelIndex, false);
854 refill();
858 refill();