1 #ifndef WEIGHTSPINBOX_H
2 #define WEIGHTSPINBOX_H
4 #include <QDoubleSpinBox>
7 class WeightSpinBox : public QDoubleSpinBox
11 WeightSpinBox(QWidget *parent=0) : QDoubleSpinBox(parent)
19 connect(Settings::self(), SIGNAL(settingChanged()),
20 this, SLOT(updateWeightUnit()));
23 void updateWeightUnit() {
24 setSuffix(" "+Settings::weightUnit());
28 #endif // WEIGHTSPINBOX_H