浏览代码

UI: Lock volume meter sliders to LTR

Fixes #5447 where sliders would work in reverse.
Matt Gajownik 2 年之前
父节点
当前提交
08a04d2cf0
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);