MCPcopy Create free account
hub / github.com/KDE/labplot / initStyleOption

Method initStyleOption

src/frontend/widgets/qxtspanslider.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void QxtSpanSliderPrivate::initStyleOption(QStyleOptionSlider* option, QxtSpanSlider::SpanHandle handle) const {
103 const QxtSpanSlider* p = &qxt_p();
104 p->initStyleOption(option);
105 option->sliderPosition = (handle == QxtSpanSlider::LowerHandle ? lowerPos : upperPos);
106 option->sliderValue = (handle == QxtSpanSlider::LowerHandle ? lower : upper);
107}
108
109int QxtSpanSliderPrivate::pixelPosToRangeValue(int pos) const {
110 QStyleOptionSlider opt;

Callers 2

mouseMoveEventMethod · 0.80
paintEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected