MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / ElaScrollBar

Method ElaScrollBar

ElaWidgetTools/ElaScrollBar.cpp:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 d->_scrollAnimation->stop();
44 d->_pixelRemainder = 0;
45 }
46 });
47 connect(this, &QScrollBar::actionTriggered, this, [this, d](int action) {
48 if (d->_isSmoothScroll && action >= QAbstractSlider::SliderSingleStepAdd && action <= QAbstractSlider::SliderPageStepSub)
49 {
50 const int movement = sliderPosition() - value();
51 setSliderPosition(value());
52 d->_scroll(movement);

Callers

nothing calls this directly

Calls 3

_initAllConfigMethod · 0.80

Tested by

no test coverage detected