Files
BionxControl/bcvalueeditor.h

33 lines
478 B
C++

#ifndef BCValueEditor_H
#define BCValueEditor_H
#include <QWidget>
#include <ui_bcvalueeditor.h>
class QSlider;
class QPushButton;
class BCValue;
class BCValueEditor : public QWidget, private Ui::BCValueEditor
{
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;
};
#endif // BCValueEditor_H