diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2020-12-08 21:23:48 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-12-10 19:40:57 +0100 |
commit | 6fa1038a85f8e0da7c91b510cf01fe1bbcf37c0f (patch) | |
tree | c0ec81582fd1d4f0fec7ae598babb9a6ae44bbee /src/widgets/styles | |
parent | ac1008c16f58d95ae4ff0a7864e3bcb0783cc439 (diff) |
QHeaderView: respect the font role while calculating the elided text
Amends 4d943846128118e1b9932a17ce6f977a0f4127a5:
- The macOS style must now elide the text by it's own since it is
no longer done by QHeaderView
- Add documentation of QStyleOptionHeader::textElideMode
- Remove unused variables from QHeaderView::initStyleOptionForIndex()
Task-number: QTBUG-86426
Change-Id: I98fc6771c0cd56d6002390125ffbab1269f6dd39
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/styles')
-rw-r--r-- | src/widgets/styles/qstyleoption.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/widgets/styles/qstyleoption.cpp b/src/widgets/styles/qstyleoption.cpp index 5bb5cca8b8..f4e5cba5e5 100644 --- a/src/widgets/styles/qstyleoption.cpp +++ b/src/widgets/styles/qstyleoption.cpp @@ -895,6 +895,16 @@ QStyleOptionHeader::QStyleOptionHeader(int version) */ /*! + \variable QStyleOptionHeader::textElideMode + \brief where ellipsis should be added for text that is too long to fit + into an item + + The default value is Qt::ElideNone. + + \sa Qt::TextElideMode +*/ + +/*! \class QStyleOptionButton \brief The QStyleOptionButton class is used to describe the parameters for drawing buttons. |