From 8ce623165a9f4eb8f4692f00404b53e342b14a66 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Sat, 4 Apr 2015 16:19:22 +0300 Subject: [PATCH] UI: Change Volume Control volume slider behavior Replaced default volume slider style with SliderAbsoluteSetStyle. --- obs/volume-control.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/obs/volume-control.cpp b/obs/volume-control.cpp index 2dab2bb5a..2777b2d06 100644 --- a/obs/volume-control.cpp +++ b/obs/volume-control.cpp @@ -1,6 +1,7 @@ #include "volume-control.hpp" #include "qt-wrappers.hpp" #include "mute-checkbox.hpp" +#include "slider-absoluteset-style.hpp" #include #include #include @@ -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(); }