Qt: Fix logging config section width

This commit is contained in:
Vicki Pfau 2020-07-05 20:11:36 -07:00
parent 136cc9b9ce
commit ed976920fd
1 changed files with 2 additions and 0 deletions

View File

@ -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 {