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

Method drawHandle

src/frontend/widgets/qxtspanslider.cpp:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void QxtSpanSliderPrivate::drawHandle(QStylePainter* painter, QxtSpanSlider::SpanHandle handle) const {
186 QStyleOptionSlider opt;
187 initStyleOption(&opt, handle);
188 opt.subControls = QStyle::SC_SliderHandle;
189 QStyle::SubControl pressed = (handle == QxtSpanSlider::LowerHandle ? lowerPressed : upperPressed);
190 if (pressed == QStyle::SC_SliderHandle) {
191 opt.activeSubControls = pressed;
192 opt.state |= QStyle::State_Sunken;
193 }
194 painter->drawComplexControl(QStyle::CC_Slider, opt);
195}
196
197void QxtSpanSliderPrivate::triggerAction(QAbstractSlider::SliderAction action, bool main) {
198 int value = 0;

Callers 1

paintEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected