UI: Align Advanced Audio Percent toggle to Volume text
Due to the placement of addStretch(), the checkbox was being attached to the Mono label when resizing the dialog.
This commit is contained in:
parent
d310f1532b
commit
ef5bb70db0
1 changed files with 2 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ OBSBasicAdvAudio::OBSBasicAdvAudio(QWidget *parent)
|
|||
|
||||
QLabel *volLabel = new QLabel(QTStr("Basic.AdvAudio.Volume"));
|
||||
volLabel->setStyleSheet("font-weight: bold;");
|
||||
volLabel->setContentsMargins(0, 0, 6, 0);
|
||||
|
||||
usePercent = new QCheckBox();
|
||||
usePercent->setStyleSheet("font-weight: bold;");
|
||||
|
|
@ -44,8 +45,8 @@ OBSBasicAdvAudio::OBSBasicAdvAudio(QWidget *parent)
|
|||
QHBoxLayout *volLayout = new QHBoxLayout();
|
||||
volLayout->setContentsMargins(0, 0, 0, 0);
|
||||
volLayout->addWidget(volLabel);
|
||||
volLayout->addStretch();
|
||||
volLayout->addWidget(usePercent);
|
||||
volLayout->addStretch();
|
||||
|
||||
int idx = 0;
|
||||
mainLayout = new QGridLayout;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue