Qt: Fix logging config section width
Vicki Pfau vi@endrift.com
Sun, 05 Jul 2020 20:11:36 -0700
1 files changed,
2 insertions(+),
0 deletions(-)
M
src/platform/qt/RotatedHeaderView.cpp
→
src/platform/qt/RotatedHeaderView.cpp
@@ -12,6 +12,8 @@
RotatedHeaderView::RotatedHeaderView(Qt::Orientation orientation, QWidget* parent) : QHeaderView(orientation, parent) { + int margin = 2 * style()->pixelMetric(QStyle::PM_HeaderMargin, 0, this); + setMinimumSectionSize(fontMetrics().height() + margin); } void RotatedHeaderView::paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const {