| 183 | } |
| 184 | |
| 185 | void 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 | |
| 197 | void QxtSpanSliderPrivate::triggerAction(QAbstractSlider::SliderAction action, bool main) { |
| 198 | int value = 0; |