@@ -151,12 +151,12 @@ private:
152 QString section(QQuickItem *item)
152 QString section(QQuickItem *item)
154− return item ? QQmlEngine::contextForObject(item)->parentContext()->contextProperty(QLatin1String("section")).toString() : QString();
154+ return item ? item->property("text").toString() : QString();
157 int sectionDelegateIndex(QQuickItem *item)
157 int sectionDelegateIndex(QQuickItem *item)
159− return item ? QQmlEngine::contextForObject(item)->parentContext()->contextProperty(QLatin1String("delegateIndex")).toInt() : -1;
159+ return item ? item->property("delegateIndex").toInt() : -1;
162private Q_SLOTS:
162private Q_SLOTS: