#ifndef KEEPWARMPOPUP_H #define KEEPWARMPOPUP_H #include #include #include namespace Ui { class KeepWarmPopup; } class KeepWarmPopup : public QWidget { Q_OBJECT public: explicit KeepWarmPopup(QWidget *parent = 0); ~KeepWarmPopup(); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private: Ui::KeepWarmPopup *ui; QTime startTime; QTimer updateViewTimer; QWidget *pushed = NULL; void onEncoderLeft(); void onEncoderRight(); void onEncoderClicked(QWidget *clicked); private slots: void updateView(); void on_stopButton_clicked(); }; #endif // KEEPWARMPOPUP_H