summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Ehrlicher <[email protected]>2024-12-14 13:30:17 +0100
committerChristian Ehrlicher <[email protected]>2024-12-16 20:37:42 +0100
commita90d9f4823bd6baf4cb660a942c2b1695441dbbd (patch)
treef50727db60160ba9904e20bf9ac1e31643868f60
parentaaf7437db3a520ab14220a46cf9427cb9a8d915c (diff)
QStyleOptionViewItem: document 'widget' and 'locale' member
These two members were added during Qt4 times but never documented. Pick-to: 6.9 6.8 6.5 Change-Id: Ife4abfc6d8883f4c26ce5b95d5c0cfd3adcbd6bf Reviewed-by: Volker Hilsheimer <[email protected]> Reviewed-by: Wladimir Leuschner <[email protected]> Reviewed-by: Samuel Gaist <[email protected]>
-rw-r--r--src/widgets/styles/qstyleoption.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/widgets/styles/qstyleoption.cpp b/src/widgets/styles/qstyleoption.cpp
index 5f0949dd3f2..27e66b7cb6c 100644
--- a/src/widgets/styles/qstyleoption.cpp
+++ b/src/widgets/styles/qstyleoption.cpp
@@ -2948,6 +2948,23 @@ QStyleOptionTitleBar::QStyleOptionTitleBar(int version)
*/
/*!
+ \variable QStyleOptionViewItem::locale
+ \brief the locale to use for displaying text, numbers and dates.
+
+ This allows the style to display e.g. dates in a different locale than
+ the default locale of the application.
+*/
+
+/*!
+ \variable QStyleOptionViewItem::widget
+ \brief the parent widget of the item
+
+ This member contains the parent widget (itemview) of the item to
+ be able to e.g. access some properties within the QStyledItemDelegate
+ methods.
+*/
+
+/*!
\variable QStyleOptionViewItem::textElideMode
\brief where ellipsis should be added for text that is too long to fit
into an item