#ifndef RESERVEDTIMEPOPUP_H #define RESERVEDTIMEPOPUP_H #include #include #include namespace Ui { class ReservedTimePopup; } class ReservedTimePopup : public QWidget { Q_OBJECT public: explicit ReservedTimePopup(QWidget *parent, QDateTime target); ~ReservedTimePopup(); protected: void keyPressEvent(QKeyEvent* event); void keyReleaseEvent(QKeyEvent* event); private: Ui::ReservedTimePopup *ui; QDateTime target; QTimer checkTimeTimer; private slots: void checkTime(); void on_cancelButton_clicked(); signals: void timeout(); void canceled(); }; #endif // RESERVEDTIMEPOPUP_H