Skip to content

Commit 6e9bd2a

Browse files
committed
fixes #811
1 parent a3238e9 commit 6e9bd2a

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

src/audiomixerboard.cpp

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,14 @@ CChannelFader::CChannelFader ( QWidget* pNW ) :
8181
pFader->setTickInterval ( AUD_MIX_FADER_MAX / 9 );
8282

8383
// setup panning control and info label
84-
pPan->setRange ( 0, AUD_MIX_PAN_MAX );
85-
pPan->setValue ( AUD_MIX_PAN_MAX / 2 );
86-
pPan->setNotchesVisible ( true );
87-
88-
// TODO undo #812 because it is wasting too much space, see discussion in #811
89-
// pInfoLabel->setMinimumSize ( 36, 36 ); // prevents jitter when muting/unmuting
90-
91-
pPanInfoGrid->addWidget ( pPanLabel, 0, Qt::AlignLeft );
92-
pPanInfoGrid->addWidget ( pInfoLabel );
93-
pPanGrid->addLayout ( pPanInfoGrid );
94-
pPanGrid->addWidget ( pPan, 0, Qt::AlignHCenter );
84+
pPan->setRange ( 0, AUD_MIX_PAN_MAX );
85+
pPan->setValue ( AUD_MIX_PAN_MAX / 2 );
86+
pPan->setNotchesVisible ( true );
87+
pInfoLabel->setMinimumHeight ( 15 ); // prevents jitter when muting/unmuting (#811)
88+
pPanInfoGrid->addWidget ( pPanLabel, 0, Qt::AlignLeft );
89+
pPanInfoGrid->addWidget ( pInfoLabel );
90+
pPanGrid->addLayout ( pPanInfoGrid );
91+
pPanGrid->addWidget ( pPan, 0, Qt::AlignHCenter );
9592

9693
// setup fader tag label (black bold text which is centered)
9794
plblLabel->setTextFormat ( Qt::PlainText );

0 commit comments

Comments
 (0)