Forráskód Böngészése

UI: Lock volume meter sliders to LTR

Fixes #5447 where sliders would work in reverse.
Matt Gajownik 2 éve
szülő
commit
08a04d2cf0
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      UI/volume-control.cpp

+ 2 - 0
UI/volume-control.cpp

@@ -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);