updated visual studio solution

This commit is contained in:
Christoph Holzheuer
2026-02-09 15:49:56 +01:00
parent 1bb800f1e7
commit 5a71884cfb
5 changed files with 0 additions and 0 deletions

43
bcvalueslider.h Normal file
View File

@@ -0,0 +1,43 @@
#ifndef BCValueEditor_H
#define BCValueEditor_H
#include <QWidget>
#include <bcvalue.h>
#include <ui_bcvalueeditor.h>
class QSlider;
class QPushButton;
class BCValue;
class BCValueEditor : public QWidget, private Ui::BCValueEditor
{
Q_OBJECT
public:
explicit BCValueEditor(QWidget *parent = nullptr);
int value() const;
void setValueAndRange( const BCValue::ValueRange& params );
// helper functions
static QRect updateEditorRect( const QRect& rect);
static void paintSliderIndicator(QPainter* painter, const QRect& rect, double ratio );
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 // BCValueEditor_H