Fixed slider painting, part II, before slider widget rewrite

This commit is contained in:
2026-03-29 20:40:31 +02:00
parent c8a088173f
commit 0389f98ba6
6 changed files with 29 additions and 27 deletions

View File

@@ -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