diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/styles/modernwindows/qwindows11style.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/styles/modernwindows/qwindows11style.cpp b/src/plugins/styles/modernwindows/qwindows11style.cpp index 89d53c2b001..ac98aaa5900 100644 --- a/src/plugins/styles/modernwindows/qwindows11style.cpp +++ b/src/plugins/styles/modernwindows/qwindows11style.cpp @@ -2142,6 +2142,11 @@ QSize QWindows11Style::sizeFromContents(ContentsType type, const QStyleOption *o contentSize += QSize(8, 0); // arrow margins } break; + case CT_HeaderSection: + // windows vista does not honor the indicator (as it was drawn above the text, not on the + // side) so call QWindowsStyle::styleHint directly to get the correct size hint + contentSize = QWindowsStyle::sizeFromContents(type, option, size, widget); + break; default: contentSize = QWindowsVistaStyle::sizeFromContents(type, option, size, widget); break; |
