2 #ifndef PROPERTYCONTROL_H 3 #define PROPERTYCONTROL_H 5 #include <QDoubleSpinBox> 8 #include "../property.h" 10 class PropertyControl :
public QWidget
13 Q_PROPERTY(
double value READ actualValue WRITE setCommanded)
16 explicit PropertyControl(QWidget *parent = 0);
19 double actualValue()
const {
return m_val.actual(); }
20 double commandedValue()
const {
return m_val.commanded(); }
25 void update(
double val);
26 void setCommanded(
double val);
27 void setDecimals(
int dec) { m_decimals = dec; }
37 #endif // PROPERTYCONTROL_H