diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-10-11 10:49:38 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-10-14 10:17:07 +0200 |
commit | ffac8995769f27fe0d68d5e0cd75716afd3d1167 (patch) | |
tree | 11adaad9e6595c10ed7879254b9c80192d86f313 /src/widgets/kernel/qopenglwidget.cpp | |
parent | 139246faa3322e933b5b66ebfc616bfe05a6ace6 (diff) |
Fix the size calculation of QHeaderView when stylesheet is used
When calculating the header section size based on its contents when a
stylesheet is used, the size hints from the stylesheet are used. In case
if the stylesheet specifies only one of the sizes, the other is set to
-1. Because of this the actual content size is ignored.
The solution is to calculate the size based on the application style, in
case if it's not specified in the stylesheet.
Fixes: QTBUG-75615
Change-Id: I3453fa623d75b6b32832edf753de6e3e4e7f5a22
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/widgets/kernel/qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions