* Moves the slider to the new position. * @param value New value. */
| 193 | * @param value New value. |
| 194 | */ |
| 195 | void Slider::setPosition(double pos) |
| 196 | { |
| 197 | _pos = pos; |
| 198 | _button->setX((int)floor(_minX + (_maxX - _minX) * _pos)); |
| 199 | } |
| 200 | |
| 201 | /** |
| 202 | * Changes the range of values the slider |
no test coverage detected