Fix Envelope and LFO Graph Size on Resizeable Instruments (#7738)

This commit is contained in:
regulus79
2025-02-28 22:13:00 -05:00
committed by GitHub
parent 3aa1a5dafa
commit 3417dfe86d

View File

@@ -28,6 +28,7 @@
#include <string_view>
#include <QBoxLayout>
#include <QSizePolicy>
#include "EnvelopeGraph.h"
#include "LfoGraph.h"
@@ -85,6 +86,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView(QWidget * parent) :
m_envelopeGraph = new EnvelopeGraph(this);
graphAndAmountLayout->addWidget(m_envelopeGraph);
m_envelopeGraph->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_amountKnob = buildKnob(tr("AMT"), tr("Modulation amount:"));
graphAndAmountLayout->addWidget(m_amountKnob, 0, Qt::AlignCenter);
@@ -124,6 +126,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView(QWidget * parent) :
lfoLayout->addLayout(graphAndTypesLayout);
m_lfoGraph = new LfoGraph(this);
m_lfoGraph->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
graphAndTypesLayout->addWidget(m_lfoGraph);
QHBoxLayout* typesLayout = new QHBoxLayout();