Skip to content

Commit

Permalink
QStyleOptionViewItem: document 'widget' and 'locale' member
Browse files Browse the repository at this point in the history
These two members were added during Qt4 times but never documented.

Pick-to: 6.5
Change-Id: Ife4abfc6d8883f4c26ce5b95d5c0cfd3adcbd6bf
Reviewed-by: Volker Hilsheimer <[email protected]>
Reviewed-by: Wladimir Leuschner <[email protected]>
Reviewed-by: Samuel Gaist <[email protected]>
(cherry picked from commit a90d9f4)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 07ad8c8)
  • Loading branch information
chehrlic authored and Qt Cherry-pick Bot committed Dec 17, 2024
1 parent fb91b0d commit b313044
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/widgets/styles/qstyleoption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2945,6 +2945,23 @@ QStyleOptionTitleBar::QStyleOptionTitleBar(int version)
\sa QStyle::SH_ItemView_ShowDecorationSelected, QAbstractItemView
*/

/*!
\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
Expand Down

0 comments on commit b313044

Please sign in to comment.