Cleanup audiomixer font handling

parent f395a534
......@@ -41,9 +41,8 @@ AudioLevelWidget::AudioLevelWidget(int width, QWidget *parent)
, m_channelFillWidth(m_channelWidth)
{
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
QFont ft = font();
ft.setPointSizeF(font().pointSize() * 0.8);
QFont ft(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
ft.setPointSizeF(ft.pointSize() * 0.8);
setFont(ft);
setMinimumWidth(4);
}
......
......@@ -242,10 +242,9 @@ void MixerWidget::buildUI(Mlt::Tractor *service, const QString &trackTag)
});
QToolButton *mute = new QToolButton(this);
mute->setFont(QFontDatabase::systemFont(QFontDatabase::SmallestReadableFont));
mute->setDefaultAction(m_muteAction);
mute->setAutoRaise(true);
// Setup default width
QFontMetrics fm(font());
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