Skip to content

Fix microtuning warning from widening instruments #7805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/gui/instrument/InstrumentTuningView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ InstrumentTuningView::InstrumentTuningView(InstrumentTrack *it, QWidget *parent)
m_microtunerNotSupportedLabel = new QLabel(tr("Microtuner is not available for MIDI-based instruments."));
m_microtunerNotSupportedLabel->setWordWrap(true);
m_microtunerNotSupportedLabel->hide();
// HACK Gives the label a fixed width, since the overall window
// width is determined by the greatest width from among all tabs,
// even if the instrument is an InstrumentViewFixedSize. This is
// also how InstrumentSoundShapingView does it
// (see d447cb0648cff249f0f4c2311ea17217576354e4).
// A better solution for both tab views would be to restrict the
// maximum width of all tabs to that of the instrument view tab.
m_microtunerNotSupportedLabel->setFixedWidth(242);
layout->addWidget(m_microtunerNotSupportedLabel);

m_microtunerGroupBox = new GroupBox(tr("MICROTUNER"));
Expand Down
Loading