Loading...
Searching...
No Matches
score::RangeWidget Class Referencefinal

Editor for a pair (start, end), the QWidget counterpart of score::QGraphicsRangeSlider. More...

Inheritance diagram for score::RangeWidget:

Detailed Description

Editor for a pair (start, end), the QWidget counterpart of score::QGraphicsRangeSlider.

The API deliberately mirrors QGraphicsRangeSlider – setRange / setValue / value / moving / sliderMoved / sliderReleased – so that the two can be driven by the same code in WidgetFactory.

The two bounds are kept ordered: pushing the start above the end drags the end along, and vice-versa, so the control can never be put in a state where start > end.

Public Member Functions

 RangeWidget (bool integral, QWidget *parent=nullptr)
 
void setRange (double min, double max, ossia::vec2f init)
 
void setValue (ossia::vec2f value)
 
ossia::vec2f value () const noexcept
 
void sliderMoved ()
 
void sliderReleased ()
 

Public Attributes

bool moving = false
 

The documentation for this class was generated from the following files: