From 1fe669c2efdaacd7b692fe6ade816d71ef96c692 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 11 Jul 2017 17:50:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=AC=EB=9D=BC=EC=9D=B4=EB=8D=94=20?= =?UTF-8?q?=EB=8F=99=EC=9E=91=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/slider.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/gui/oven_control/slider.cpp b/app/gui/oven_control/slider.cpp index c20b2f9..78e41b5 100644 --- a/app/gui/oven_control/slider.cpp +++ b/app/gui/oven_control/slider.cpp @@ -174,11 +174,13 @@ void Slider::mouseMoveEvent(QMouseEvent *event) setSliderPosition(calcSliderPosition(event->x())); } -void Slider::mousePressEvent(QMouseEvent */*event*/) +void Slider::mousePressEvent(QMouseEvent *event) { isSliderDown_ = true; emit sliderPressed(); + + setSliderPosition(calcSliderPosition(event->x())); } void Slider::mouseReleaseEvent(QMouseEvent */*event*/) -- 2.1.4