From 67b3027f588160f0eae1a560159dd021beac3aaa Mon Sep 17 00:00:00 2001 From: saker Date: Wed, 18 Sep 2024 23:48:36 -0400 Subject: [PATCH] Revert "Remove solo/mute layout" This reverts commit b7d8b15f5c5aad7c02981ea2387c107728e666d5. --- src/gui/MixerChannelView.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gui/MixerChannelView.cpp b/src/gui/MixerChannelView.cpp index 7f39afbd3e7..4b63b3f9bbe 100644 --- a/src/gui/MixerChannelView.cpp +++ b/src/gui/MixerChannelView.cpp @@ -113,6 +113,12 @@ namespace lmms::gui m_soloButton->setCheckable(true); m_soloButton->setToolTip(tr("Solo this channel")); + QVBoxLayout* soloMuteLayout = new QVBoxLayout(); + soloMuteLayout->setContentsMargins(0, 0, 0, 0); + soloMuteLayout->setSpacing(0); + soloMuteLayout->addWidget(m_soloButton, 0, Qt::AlignHCenter); + soloMuteLayout->addWidget(m_muteButton, 0, Qt::AlignHCenter); + m_fader = new Fader{&mixerChannel->m_volumeModel, tr("Fader %1").arg(channelIndex), this}; m_peakIndicator = new PeakIndicator(this); @@ -130,8 +136,7 @@ namespace lmms::gui mainLayout->addWidget(m_sendArrow, 0, Qt::AlignHCenter); mainLayout->addWidget(m_channelNumberLcd, 0, Qt::AlignHCenter); mainLayout->addWidget(m_renameLineEditView, 0, Qt::AlignHCenter); - mainLayout->addWidget(m_soloButton, 0, Qt::AlignHCenter); - mainLayout->addWidget(m_muteButton, 0, Qt::AlignHCenter); + mainLayout->addLayout(soloMuteLayout, 0); mainLayout->addWidget(m_peakIndicator); mainLayout->addWidget(m_fader, 1, Qt::AlignHCenter);