34 lines
480 B
C++
34 lines
480 B
C++
#ifndef BCVALUEEDITOR_H
|
|
#define BCVALUEEDITOR_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QSlider;
|
|
class QPushButton;
|
|
class BCValue;
|
|
|
|
class BCValueEditor : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit BCValueEditor(const BCValue& bcValue, QWidget *parent = nullptr);
|
|
|
|
int getValue() const;
|
|
void setValue(int val);
|
|
|
|
signals:
|
|
|
|
void valueChanged(int value);
|
|
|
|
private:
|
|
|
|
const BCValue& _bcValue;
|
|
QSlider* _slider;
|
|
QPushButton* _commitButton;
|
|
|
|
};
|
|
|
|
#endif // BCVALUEEDITOR_H
|