Widget combining a slider with a spin box for configuring integer values.
|
| | DoubleAdjusterWidget (double minimum, double maximum, double singleStep=0.1, QWidget *parent=nullptr) |
| | Creates a new IntAdjusterWidget.
|
| |
|
| DoubleAdjusterWidget (QWidget *parent=nullptr) |
| | Creates a new DoubleAdjusterWidget with minimum of 0.0, maximum of 1.0 and singleStep of 0.1.
|
| |
|
int | decimals () const |
| | Returns how many decimals the adjuster will use for displaying doubles.
|
| |
| void | setDecimals (int decimals) |
| | Set how many decimals the adjuster will use for displaying doubles.
|
| |
| | AdjusterWidgetBase (QWidget *parent=nullptr) |
| | Creates a new AbstractAdjusterWidget.
|
| |
|
double | value () const |
| | Return the adjuster's current value.
|
| |
| void | setValue (double value) |
| | Change the adjuster's current value.
|
| |
|
double | minimum () const |
| | Return the adjuster's spin box minimum value.
|
| |
| void | setMinimum (double minimum) |
| | Change both the adjuster's spin box and slider minimum value.
|
| |
|
double | maximum () const |
| | Return the adjuster's spin box maximum value.
|
| |
| void | setMaximum (double maximum) |
| | Change both the adjuster's spin box and slider maximum value.
|
| |
|
double | sliderMinimum () const |
| | Return the adjuster's slider minimum value.
|
| |
| void | setSliderMinimum (double minimum) |
| | Change the adjuster's slider minimum value.
|
| |
|
double | sliderMaximum () const |
| | Return the adjuster's slider maximum value.
|
| |
| void | setSliderMaximum (double maximum) |
| | Change the adjuster's slider maximum value.
|
| |
|
void | setRightToLeft (bool righToLeft) |
| | Change the adjuster's slider to go from right-to-left, instead of left-to-right.
|
| |
|
double | spinboxMinimum () const |
| | Return the adjuster's spin box minimum value.
|
| |
| void | setSpinboxMinimum (double minimum) |
| | Change the adjuster's spin box minimum value.
|
| |
|
double | spinboxMaximum () const |
| | Return the adjuster's spin box maximum value.
|
| |
| void | setSpinboxMaximum (double maximum) |
| | Change the adjuster's spin box maximum value.
|
| |
|
double | singleStep () const |
| | Return the adjuster's single step value.
|
| |
| void | setSingleStep (double value) |
| | Change the adjuster's single step value.
|
| |
|
virtual bool | blockSignals (bool value) |
| | Sets Qt's blockSignals setting of both the slider and the spin box.
|
| |
|
AdjusterWidgetTraits< double >::SpinBoxType * | spinBox () |
| | Returns the pointer to the spin box that is used internally.
|
| |
|
|
void | onSpinBoxValueChangedImpl (double value) |
| | Slot getting called when the spin box's value changes.
|
| |
| double | onSliderValueChangedImpl (double value) |
| | Slot getting called when the slider's value changes.
|
| |
|
virtual void | setSliderValue (double value) |
| | Virtual method to update the slider's value. To be overridden in sub classes.
|
| |
| virtual void | setSliderProperties (double stepValue, double minValue, double maxValue) |
| | Update the slider's properties based on the provided step, minimum, and maximum value of the adjuster.
|
| |
|
QSlider * | m_slider |
| | Slider allowing the user to quickly change the value.
|
| |
|
AdjusterWidgetTraits< double >::SpinBoxType * | m_spinBox |
| | Spin box displaying the current value.
|
| |
|
double | m_sliderMin |
| | Minimum value used for the slider.
|
| |
|
double | m_sliderMax |
| | Maximum value used for the slider.
|
| |