diff options
author | Albert Astals Cid <aacid@kde.org> | 2024-04-17 11:13:37 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2024-04-22 10:04:14 +0200 |
commit | ca207f3e63f91426589f7afc775ae3fecc5e49b2 (patch) | |
tree | 33f3fb01f59a695d04a9c0377b5f16a538c3bd88 | |
parent | 178bdadb77236c7b0c16ea12ef85b109bdec84b8 (diff) |
Fix documentation of List/GridView count
It doesn't return the number of items in the view, it returns
the number of elements in the model
Pick-to: 6.7 6.5 6.2 5.15
Change-Id: Iea479ef0fef1823718d7681ae30bb49f60025237
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/quick/items/qquickgridview.cpp | 2 | ||||
-rw-r--r-- | src/quick/items/qquicklistview.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquickgridview.cpp b/src/quick/items/qquickgridview.cpp index 25ef44ecb0..e67d80b2d6 100644 --- a/src/quick/items/qquickgridview.cpp +++ b/src/quick/items/qquickgridview.cpp @@ -1382,7 +1382,7 @@ void QQuickGridView::setHighlightFollowsCurrentItem(bool autoHighlight) /*! \qmlproperty int QtQuick::GridView::count - This property holds the number of items in the view. + This property holds the number of items in the model. */ /*! diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp index 3fde95e213..6b185b4e7c 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -2411,7 +2411,7 @@ QQuickListView::~QQuickListView() /*! \qmlproperty int QtQuick::ListView::count - This property holds the number of items in the view. + This property holds the number of items in the model. */ /*! |