diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2024-04-25 07:24:23 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2024-04-25 09:30:36 +0200 |
commit | 73bfb8a5de91ab79d43bc699f956d83d665fd0e0 (patch) | |
tree | 2b436f7763430f79b5517518a0197141b1e057f1 /src | |
parent | 8efa9e06491e26da3fe842babb8a33f389d181bc (diff) |
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 <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/labs/models/qqmltablemodelcolumn.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
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 */ |