Fixed slider painting, part II, before slider widget rewrite
This commit is contained in:
@@ -15,6 +15,7 @@ class QSlider;
|
||||
class QPushButton;
|
||||
class BCValue;
|
||||
|
||||
|
||||
class BCValueSlider : public QWidget, private Ui::BCValueSlider
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -27,14 +28,17 @@ public:
|
||||
void setValueAndRange( const BCValue::ValueRange& params );
|
||||
|
||||
// helper functions
|
||||
static QRect updateEditorRect( const QRect& rect);
|
||||
static QRect clipToSliderRect( const QRect& rect);
|
||||
static void paintSliderIndicator(QPainter* painter, const QRect& rect, double ratio );
|
||||
|
||||
static constexpr int cToolIconOffset = 24;
|
||||
|
||||
signals:
|
||||
|
||||
void valueChanged(int value);
|
||||
void valueCommited(int value);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
// Fluent Design Slider Style
|
||||
|
||||
Reference in New Issue
Block a user