all repos — mgba @ ed976920fdd8a5a1c6091228fa351423b641c272

mGBA Game Boy Advance Emulator

Qt: Fix logging config section width
Vicki Pfau vi@endrift.com
Sun, 05 Jul 2020 20:11:36 -0700
commit

ed976920fdd8a5a1c6091228fa351423b641c272

parent

136cc9b9cefa12e157920ce89ed4653c02d1387b

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/RotatedHeaderView.cppsrc/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 {