void ContinuousSlider::mouseReleaseEvent(QMouseEvent *e) { if (_mouseDown) { _mouseDown = false; if (_changeFinishedCallback) { _changeFinishedCallback(_downValue); } _value = _downValue; update(); } }
void ContinuousSlider::mouseReleaseEvent(QMouseEvent *e) { if (_mouseDown) { _mouseDown = false; if (_changeFinishedCallback) { _changeFinishedCallback(_downValue); } a_value = anim::value(_downValue, _downValue); _a_value.stop(); update(); } }
void ContinuousSlider::setMoveByWheel(bool move) { if (move != moveByWheel()) { if (move) { _byWheelFinished = std_::make_unique<SingleTimer>(); _byWheelFinished->setTimeoutHandler([this] { if (_changeFinishedCallback) { _changeFinishedCallback(getCurrentValue(getms())); } }); } else { _byWheelFinished.reset(); } } }