From 0218e13ea98cb54629ce932fdb9adf2867838d26 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Mon, 5 Dec 2011 15:40:31 +1000 Subject: [PATCH] Document headerItem and footerItem of ListView and GridView. Change-Id: Icfa899bc8c8c7e40f79988700a94ee8480e42bd6 Reviewed-by: Martin Jones --- src/quick/items/qquickgridview.cpp | 25 +++++++++++++++++++++++-- src/quick/items/qquicklistview.cpp | 24 ++++++++++++++++++++++-- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/src/quick/items/qquickgridview.cpp b/src/quick/items/qquickgridview.cpp index 44e1f14..e1a926e 100644 --- a/src/quick/items/qquickgridview.cpp +++ b/src/quick/items/qquickgridview.cpp @@ -1496,7 +1496,7 @@ void QQuickGridView::setSnapMode(SnapMode mode) An instance of the footer component is created for each view. The footer is positioned at the end of the view, after any items. - \sa header + \sa header, footerItem */ /*! \qmlproperty Component QtQuick2::GridView::header @@ -1505,8 +1505,29 @@ void QQuickGridView::setSnapMode(SnapMode mode) An instance of the header component is created for each view. The header is positioned at the beginning of the view, before any items. - \sa footer + \sa footer, headerItem */ + +/*! + \qmlproperty Item QtQuick2::GridView::headerItem + This holds the header item created from the \l header component. + + An instance of the header component is created for each view. The + header is positioned at the beginning of the view, before any items. + + \sa header, footerItem +*/ + +/*! + \qmlproperty Item QtQuick2::GridView::footerItem + This holds the footer item created from the \l footer component. + + An instance of the footer component is created for each view. The + footer is positioned at the end of the view, after any items. + + \sa footer, headerItem +*/ + void QQuickGridView::viewportMoved() { Q_D(QQuickGridView); diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp index 86af390..88a3855 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -2141,7 +2141,7 @@ void QQuickListView::setSnapMode(SnapMode mode) An instance of the footer component is created for each view. The footer is positioned at the end of the view, after any items. - \sa header + \sa header, footerItem */ @@ -2152,7 +2152,27 @@ void QQuickListView::setSnapMode(SnapMode mode) An instance of the header component is created for each view. The header is positioned at the beginning of the view, before any items. - \sa footer + \sa footer, headertem +*/ + +/*! + \qmlproperty Item QtQuick2::ListView::headerItem + This holds the header item created from the \l header component. + + An instance of the header component is created for each view. The + header is positioned at the beginning of the view, before any items. + + \sa header, footerItem +*/ + +/*! + \qmlproperty Item QtQuick2::ListView::footerItem + This holds the footer item created from the \l footer component. + + An instance of the footer component is created for each view. The + footer is positioned at the end of the view, after any items. + + \sa footer, headerItem */ void QQuickListView::viewportMoved() -- 1.7.2.5