mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
UI: Lock volume meter sliders to LTR
Fixes #5447 where sliders would work in reverse.
This commit is contained in:
parent
852d53723c
commit
08a04d2cf0
|
@ -204,6 +204,7 @@ VolControl::VolControl(OBSSource source_, bool showConfig, bool vertical)
|
|||
|
||||
volMeter = new VolumeMeter(nullptr, obs_volmeter, true);
|
||||
slider = new VolumeSlider(obs_fader, Qt::Vertical);
|
||||
slider->setLayoutDirection(Qt::LeftToRight);
|
||||
|
||||
nameLayout->setAlignment(Qt::AlignCenter);
|
||||
meterLayout->setAlignment(Qt::AlignCenter);
|
||||
|
@ -253,6 +254,7 @@ VolControl::VolControl(OBSSource source_, bool showConfig, bool vertical)
|
|||
|
||||
volMeter = new VolumeMeter(nullptr, obs_volmeter, false);
|
||||
slider = new VolumeSlider(obs_fader, Qt::Horizontal);
|
||||
slider->setLayoutDirection(Qt::LeftToRight);
|
||||
|
||||
textLayout->setContentsMargins(0, 0, 0, 0);
|
||||
textLayout->addWidget(nameLabel);
|
||||
|
|
Loading…
Reference in a new issue