Doc: Documentation for QList classes should mention how to sort them

Added a statement in the QList descriton and linked it to the
Qt containers and std algorithms

Fixes: QTBUG-94993
Change-Id: I12b75d147cb6e80036133547cc6365b3325c7e28
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
(cherry picked from commit 4f66c10ba2f6234b7d404e7617b86eff567d657b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Jaishree Vyas 2024-07-18 12:29:22 +02:00 committed by Qt Cherry-pick Bot
parent f53074c747
commit ceaf5b9a2b

View File

@ -130,6 +130,9 @@
per-function basis. per-function basis.
For iterating over the items, see \l {Iterating over Containers}. For iterating over the items, see \l {Iterating over Containers}.
For using QList with functions from \c {<algorithm>} header, such as
\c {std::sort()}, \c {std::reverse()}, and \c {std::count_if()},
see \l {Qt containers and std algorithms}.
In addition to QList, Qt also provides QVarLengthArray, a very In addition to QList, Qt also provides QVarLengthArray, a very
low-level class with little functionality that is optimized for low-level class with little functionality that is optimized for