From ed976920fdd8a5a1c6091228fa351423b641c272 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 5 Jul 2020 20:11:36 -0700 Subject: [PATCH] Qt: Fix logging config section width --- src/platform/qt/RotatedHeaderView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/qt/RotatedHeaderView.cpp b/src/platform/qt/RotatedHeaderView.cpp index 15d927628..dd4ed52df 100644 --- a/src/platform/qt/RotatedHeaderView.cpp +++ b/src/platform/qt/RotatedHeaderView.cpp @@ -12,6 +12,8 @@ using namespace QGBA; 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 {