// Copyright 2013, University of Freiburg, // Author: Manuel Schneider #ifndef TIMEOUTDIALOG_H #define TIMEOUTDIALOG_H #include #include class TimeOutDialog : public QProgressDialog { Q_OBJECT public: TimeOutDialog(int time, QWidget *parent = 0); bool isActive() const { return _timer.isActive(); } private: int _time; QTimer _timer; public slots: void cancel(); private slots: void update(); }; #endif // TIMEOUTDIALOG_H