#ifndef BC_VALUESLIDER_H #define BC_VALUESLIDER_H #include #include #include class QSlider; class QPushButton; class BCValue; class BCValueSlider : public QWidget, private Ui::BCValueSlider { Q_OBJECT public: explicit BCValueSlider(QWidget *parent = nullptr); int value() const; void setValueAndRange( const BCValue::ValueRange& params ); // helper functions static QRect updateEditorRect( const QRect& rect); signals: void valueChanged(int value); void valueCommited(int value); protected: static constexpr int cTextBlockOffset = 130; static constexpr int cPaddingRight = 8; static constexpr int cSliderWidth = 117; }; #endif // BC_VALUESLIDER_H