Cleanup audiomixer font handling

parent f395a534
...@@ -41,9 +41,8 @@ AudioLevelWidget::AudioLevelWidget(int width, QWidget *parent) ...@@ -41,9 +41,8 @@ AudioLevelWidget::AudioLevelWidget(int width, QWidget *parent)
, m_channelFillWidth(m_channelWidth) , m_channelFillWidth(m_channelWidth)
{ {
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont)); QFont ft(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
QFont ft = font(); ft.setPointSizeF(ft.pointSize() * 0.8);
ft.setPointSizeF(font().pointSize() * 0.8);
setFont(ft); setFont(ft);
setMinimumWidth(4); setMinimumWidth(4);
} }
......
...@@ -242,10 +242,9 @@ void MixerWidget::buildUI(Mlt::Tractor *service, const QString &trackTag) ...@@ -242,10 +242,9 @@ void MixerWidget::buildUI(Mlt::Tractor *service, const QString &trackTag)
}); });
QToolButton *mute = new QToolButton(this); QToolButton *mute = new QToolButton(this);
mute->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
mute->setDefaultAction(m_muteAction); mute->setDefaultAction(m_muteAction);
mute->setAutoRaise(true); mute->setAutoRaise(true);
// Setup default width // Setup default width
QFontMetrics fm(font()); QFontMetrics fm(font());
setMaximumWidth(3 * mute->sizeHint().width()); setMaximumWidth(3 * mute->sizeHint().width());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment