14 static constexpr float MIN = 0.0;
17 static constexpr float MAX = 100.0;
20 static constexpr int PRE = 1000;
28 explicit FloatSlider(Qt::Orientation orientation, QWidget* parent =
nullptr);
61 void onIntValueChanged(
int value);
67 void updateSliderValue();
70 double current_min { MIN };
73 double current_max { MAX };
76 int precision { PRE };
The FloatSlider class A QSlider subclass that allows working with floating point ranges and values.
Definition FloatSlideBar.h:10
void setFloatRange(double min, double max)
Set the floating point range for the slider.
Definition FloatSlideBar.cpp:10
void setFloatValue(double val)
Set the current floating point value.
Definition FloatSlideBar.cpp:16
double floatValue() const
Get the current floating point value.
Definition FloatSlideBar.cpp:26
void floatValueChanged(double val)
Signal emitted when the float value changes.