cleanups.

This commit is contained in:
Christoph Holzheuer
2026-02-09 16:03:09 +01:00
parent 5a71884cfb
commit 7993247027
27 changed files with 814 additions and 2253 deletions

View File

@@ -1,31 +1,29 @@
#ifndef BCValueEditor_H
#define BCValueEditor_H
#ifndef BC_VALUESLIDER_H
#define BC_VALUESLIDER_H
#include <QWidget>
#include <bcvalue.h>
#include <ui_bcvalueeditor.h>
#include <ui_bcvalueslider.h>
class QSlider;
class QPushButton;
class BCValue;
class BCValueEditor : public QWidget, private Ui::BCValueEditor
class BCValueSlider : public QWidget, private Ui::BCValueSlider
{
Q_OBJECT
public:
explicit BCValueEditor(QWidget *parent = nullptr);
explicit BCValueSlider(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:
@@ -40,4 +38,4 @@ protected:
};
#endif // BCValueEditor_H
#endif // BC_VALUESLIDER_H