Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/thermowidget.h
Show All 26 Lines | |||||
27 | class QFocusEvent; | 27 | class QFocusEvent; | ||
28 | class QWheelEvent; | 28 | class QWheelEvent; | ||
29 | 29 | | |||
30 | class ThermoWidget : public QwtDial | 30 | class ThermoWidget : public QwtDial | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | public: | 34 | public: | ||
35 | ThermoWidget(QWidget *parent, QString name); | 35 | ThermoWidget(QWidget *parent, const QString &name); | ||
36 | ~ThermoWidget() = default; | ||||
36 | 37 | | |||
37 | void drawNeedle(QPainter *painter, const QPointF ¢er, | 38 | void drawNeedle(QPainter *painter, const QPointF ¢er, | ||
38 | double radius, double dir, QPalette::ColorGroup colorGroup) const; | 39 | double radius, double dir, QPalette::ColorGroup colorGroup) const; | ||
39 | 40 | | |||
40 | void setCurrentTemperature(double temperature); | 41 | void setCurrentTemperature(double temperature); | ||
41 | void setTargetTemperature(int temperature); | 42 | void setTargetTemperature(int temperature); | ||
42 | 43 | | |||
43 | signals: | 44 | signals: | ||
Show All 23 Lines |