#ifndef WATERLEVELICON_H #define WATERLEVELICON_H #include #include class WaterLevelIcon : public QLabel { Q_OBJECT QTimer timer; public: explicit WaterLevelIcon(QWidget *parent = Q_NULLPTR); private slots: void check(); }; #endif // WATERLEVELICON_H