Commit 1fe669c2efdaacd7b692fe6ade816d71ef96c692
1 parent
6e338d03f2
Exists in
master
and in
2 other branches
슬라이더 동작 개선
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/gui/oven_control/slider.cpp
@@ -174,11 +174,13 @@ void Slider::mouseMoveEvent(QMouseEvent *event) | @@ -174,11 +174,13 @@ void Slider::mouseMoveEvent(QMouseEvent *event) | ||
174 | setSliderPosition(calcSliderPosition(event->x())); | 174 | setSliderPosition(calcSliderPosition(event->x())); |
175 | } | 175 | } |
176 | 176 | ||
177 | -void Slider::mousePressEvent(QMouseEvent */*event*/) | 177 | +void Slider::mousePressEvent(QMouseEvent *event) |
178 | { | 178 | { |
179 | isSliderDown_ = true; | 179 | isSliderDown_ = true; |
180 | 180 | ||
181 | emit sliderPressed(); | 181 | emit sliderPressed(); |
182 | + | ||
183 | + setSliderPosition(calcSliderPosition(event->x())); | ||
182 | } | 184 | } |
183 | 185 | ||
184 | void Slider::mouseReleaseEvent(QMouseEvent */*event*/) | 186 | void Slider::mouseReleaseEvent(QMouseEvent */*event*/) |