Skip to content

Commit 3417dfe

Browse files
authored
Fix Envelope and LFO Graph Size on Resizeable Instruments (LMMS#7738)
1 parent 3aa1a5d commit 3417dfe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/instrument/EnvelopeAndLfoView.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <string_view>
2929

3030
#include <QBoxLayout>
31+
#include <QSizePolicy>
3132

3233
#include "EnvelopeGraph.h"
3334
#include "LfoGraph.h"
@@ -85,6 +86,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView(QWidget * parent) :
8586

8687
m_envelopeGraph = new EnvelopeGraph(this);
8788
graphAndAmountLayout->addWidget(m_envelopeGraph);
89+
m_envelopeGraph->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
8890

8991
m_amountKnob = buildKnob(tr("AMT"), tr("Modulation amount:"));
9092
graphAndAmountLayout->addWidget(m_amountKnob, 0, Qt::AlignCenter);
@@ -124,6 +126,7 @@ EnvelopeAndLfoView::EnvelopeAndLfoView(QWidget * parent) :
124126
lfoLayout->addLayout(graphAndTypesLayout);
125127

126128
m_lfoGraph = new LfoGraph(this);
129+
m_lfoGraph->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
127130
graphAndTypesLayout->addWidget(m_lfoGraph);
128131

129132
QHBoxLayout* typesLayout = new QHBoxLayout();

0 commit comments

Comments
 (0)