Skip to content
Permalink
Browse files

Qt/AudioPane: Fix volume box not keeping consistent width

  • Loading branch information...
spycrab committed Mar 21, 2019
1 parent fcd0dbe commit d1f7f0fcc0f50312291fcaf0663e033c685e3336
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/Core/DolphinQt/Settings/AudioPane.cpp
@@ -6,6 +6,7 @@

#include <QCheckBox>
#include <QComboBox>
#include <QFontMetrics>
#include <QFormLayout>
#include <QGridLayout>
#include <QGroupBox>
@@ -65,6 +66,7 @@ void AudioPane::CreateWidgets()
m_volume_slider->setMaximum(100);

m_volume_indicator->setAlignment(Qt::AlignVCenter | Qt::AlignHCenter);
m_volume_indicator->setFixedWidth(QFontMetrics(font()).boundingRect(tr("%1 %").arg(100)).width());

volume_layout->addWidget(m_volume_slider, 0, Qt::AlignHCenter);
volume_layout->addWidget(m_volume_indicator, 0, Qt::AlignHCenter);

0 comments on commit d1f7f0f

Please sign in to comment.
You can’t perform that action at this time.