From 73bfb8a5de91ab79d43bc699f956d83d665fd0e0 Mon Sep 17 00:00:00 2001 From: Axel Spoerl Date: Thu, 25 Apr 2024 07:24:23 +0200 Subject: TableModelRow QML Type: Document data role strings String accessors used for data roles in a TableModelRow were not documented. Add missing documentation. Pick-to: 6.7 6.6 6.5 Change-Id: Id815e7a2b83f8bc6b2330cbccb6c1ac365c211c8 Reviewed-by: Mitch Curtis --- src/labs/models/qqmltablemodelcolumn.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src') diff --git a/src/labs/models/qqmltablemodelcolumn.cpp b/src/labs/models/qqmltablemodelcolumn.cpp index f2e6d65f87..9f94e241b2 100644 --- a/src/labs/models/qqmltablemodelcolumn.cpp +++ b/src/labs/models/qqmltablemodelcolumn.cpp @@ -18,6 +18,29 @@ QT_BEGIN_NAMESPACE TableModelColumn supports all of \l {Qt::ItemDataRole}{Qt's roles}, with the exception of \c Qt::InitialSortOrderRole. + Roles can be accessed by as listed below, e.g. + \code + text: display + + required property string display + \endcode + + \table + \row \li Qt::DisplayRole \li display + \row \li Qt::DecorationRole \li decoration + \row \li Qt::EditRole \li edit + \row \li Qt::ToolTipRole \li toolTip + \row \li Qt::StatusTipRole \li statusTip + \row \li Qt::WhatsThisRole \li whatsThis + \row \li Qt::FontRole \li font + \row \li Qt::TextAlignmentRole \li textAlignment + \row \li Qt::BackgroundRole \li background + \row \li Qt::ForegroundRole \li foreground + \row \li Qt::CheckStateRole \li checkState + \row \li Qt::AccessibleTextRole \li accessibleText + \row \li Qt::AccessibleDescriptionRole \li accessibleDescription + \row \li Qt::SizeHintRole \li sizeHintRoleNam + \endtable \sa TableModel, TableView */ -- cgit v1.2.3