1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef WATERLEVELICON_H #define WATERLEVELICON_H #include <QLabel> #include <QTimer> class WaterLevelIcon : public QLabel { Q_OBJECT QTimer timer; public: explicit WaterLevelIcon(QWidget *parent = Q_NULLPTR); private slots: void check(); }; #endif // WATERLEVELICON_H