UI: Change Volume Control volume slider behavior

Replaced default volume slider style with SliderAbsoluteSetStyle.
This commit is contained in:
HomeWorld
2015-04-11 07:13:42 -07:00
committed by jp9000
parent df893dde81
commit 8ce623165a
+3
View File
@@ -1,6 +1,7 @@
#include "volume-control.hpp"
#include "qt-wrappers.hpp"
#include "mute-checkbox.hpp"
#include "slider-absoluteset-style.hpp"
#include <util/platform.h>
#include <QHBoxLayout>
#include <QVBoxLayout>
@@ -161,6 +162,8 @@ VolControl::VolControl(OBSSource source_)
obs_fader_attach_source(obs_fader, source);
obs_volmeter_attach_source(obs_volmeter, source);
slider->setStyle(new SliderAbsoluteSetStyle(slider->style()));
/* Call volume changed once to init the slider position and label */
VolumeChanged();
}