Backups.
This commit is contained in:
33
bcvalueeditor.h
Normal file
33
bcvalueeditor.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user