diff options
author | Albert Astals Cid <aacid@kde.org> | 2024-04-17 11:13:37 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-04-22 21:39:04 +0000 |
commit | a7debb56f25558cb6a9afdf8d799555aa881d3eb (patch) | |
tree | 8f997329d70bf4874d9e603b3ba85fc29edca370 | |
parent | 688874e1cd0d784ee7f8c1cada5b7c0eb3616265 (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.5 6.2 5.15
Change-Id: Iea479ef0fef1823718d7681ae30bb49f60025237
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit ca207f3e63f91426589f7afc775ae3fecc5e49b2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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. */ /*! |