#ifndef INTERTEMPGAUGE_H #define INTERTEMPGAUGE_H #include #include class PreheatTempGauge : public QWidget { Q_OBJECT public: explicit PreheatTempGauge(QWidget *parent = 0); signals: public slots: void setValue(int value); void setMinimum(int minimum); void setMaximum(int maximum); protected: void paintEvent(QPaintEvent *event); protected: QPixmap body; QPixmap border; QPixmap indicator; int value; int min; int max; }; #endif // INTERTEMPGAUGE_H