Document headerItem and footerItem of ListView and GridView.
authorMartin Jones <martin.jones@nokia.com>
Mon, 5 Dec 2011 05:40:31 +0000 (15:40 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Dec 2011 07:43:14 +0000 (08:43 +0100)
Change-Id: Icfa899bc8c8c7e40f79988700a94ee8480e42bd6
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickgridview.cpp
src/quick/items/qquicklistview.cpp

index 44e1f14..e1a926e 100644 (file)
@@ -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);
index 86af390..88a3855 100644 (file)
@@ -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()