Only change the equalizer values when the user lets go of the slider - might make it a bit smoother. Updates issue #191

This commit is contained in:
David Sansome 2010-04-12 17:30:56 +00:00
parent 07a851c951
commit 95bfcd86a9
2 changed files with 5 additions and 2 deletions

View File

@ -40,6 +40,9 @@
<property name="maximum">
<number>100</number>
</property>
<property name="tracking">
<bool>false</bool>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>

View File

@ -29,8 +29,8 @@ void StickySlider::mouseMoveEvent(QMouseEvent *e) {
if (sticky_center_ == -1)
return;
const int v = value();
const int v = sliderPosition();
if (v <= sticky_center_ + sticky_threshold_ &&
v >= sticky_center_ - sticky_threshold_)
setValue(sticky_center_);
setSliderPosition(sticky_center_);
}