mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix logging config section width
This commit is contained in:
parent
136cc9b9ce
commit
ed976920fd
|
@ -12,6 +12,8 @@ using namespace QGBA;
|
||||||
RotatedHeaderView::RotatedHeaderView(Qt::Orientation orientation, QWidget* parent)
|
RotatedHeaderView::RotatedHeaderView(Qt::Orientation orientation, QWidget* parent)
|
||||||
: QHeaderView(orientation, 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 {
|
void RotatedHeaderView::paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const {
|
||||||
|
|
Loading…
Reference in New Issue