QRM: document the headerData implementation

Pick-to: 6.10
Change-Id: I59bdceec27fb364b19a7d9d8e1f368d2449ada42
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
This commit is contained in:
Volker Hilsheimer 2025-09-03 22:21:35 +03:00
parent 99a10f4528
commit 9d0eddb70c
1 changed files with 9 additions and 0 deletions

View File

@ -664,6 +664,15 @@ Qt::ItemFlags QRangeModel::flags(const QModelIndex &index) const
number. Similarly, for vertical headers, the section number corresponds to
the row number.
For the horizontal header and the Qt::DisplayRole \a role, models that
operate on a range that uses an array as the row type return \a section. If
the row type is a tuple, then the implementation returns the name of the
type at \a section. For rows that are a gadget or QObject type, this
function returns the name of the property at the index of \a section.
For the vertical header, this function always returns the result of the
default implementation in QAbstractItemModel.
\sa Qt::ItemDataRole, setHeaderData(), QHeaderView
*/
QVariant QRangeModel::headerData(int section, Qt::Orientation orientation, int role) const