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-05-16 03:04:20 +0000 |
| commit | 84993824532d823c031e4ca8f75910a4df108702 (patch) | |
| tree | 14c1b3f785ba3b7ce0016071327e69ebda3a88fa | |
| parent | a66355b320b151a74944bce066e8e0fe909bd8ba (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
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>
(cherry picked from commit a7debb56f25558cb6a9afdf8d799555aa881d3eb)
(cherry picked from commit 1921468b1a64726053d3b65c34071d365e99ae5d)
(cherry picked from commit 842df5c44f41131e4b33bb4293192ca489f799fd)
| -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 3c0fd0d89f..5958e512a3 100644 --- a/src/quick/items/qquickgridview.cpp +++ b/src/quick/items/qquickgridview.cpp @@ -1376,7 +1376,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 4aaa61eb0a..256356a9d1 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -2359,7 +2359,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. */ /*! |
