From 70f3d788a43072ee4f10c3a67cc92fbb2bff5eee Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Mon, 2 Dec 2013 12:24:53 +0100 Subject: [Experimental] Timeout + revert functionality --- src/timeoutdialog.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/timeoutdialog.h (limited to 'src/timeoutdialog.h') diff --git a/src/timeoutdialog.h b/src/timeoutdialog.h new file mode 100644 index 0000000..643b593 --- /dev/null +++ b/src/timeoutdialog.h @@ -0,0 +1,26 @@ +#ifndef TIMEOUTDIALOG_H +#define TIMEOUTDIALOG_H + +#include +#include +#include + +class TimeOutDialog : public QProgressDialog +{ + Q_OBJECT + + public: + TimeOutDialog(int time, QWidget *parent = 0); + + private: + int _time; + QTimer _timer; + + public slots: + void cancel(); + + private slots: + void update(); +}; + +#endif // TIMEOUTDIALOG_H -- cgit v1.2.3-55-g7522