iCub-main
customspinbox.h
Go to the documentation of this file.
1 #ifndef CUSTOMSPINBOX_H
2 #define CUSTOMSPINBOX_H
3 
4 #include <QObject>
5 #include <QSpinBox>
6 #include "downloader.h"
7 
8 class CustomSpinBox : public QSpinBox
9 {
10  Q_OBJECT
11 public:
12  CustomSpinBox(icubCanProto_boardType_t boardType, QWidget *parent = nullptr);
13 
14  void setData(QVariant v);
15  QVariant getData();
16  void clear();
17  void setCurrentValue(int v);
18 
19 private:
20  QVariant data;
21  int previousValue;
22  bool modified;
23 
24 private slots:
25  void onValueChanged(int);
26 };
27 
28 #endif // CUSTOMSPINBOX_H
void setCurrentValue(int v)
QVariant getData()
void setData(QVariant v)
CustomSpinBox(icubCanProto_boardType_t boardType, QWidget *parent=nullptr)