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 @@ -2947,6 +2947,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