diff options
author | Manuel Schneider | 2013-12-02 12:24:53 +0100 |
---|---|---|
committer | Manuel Schneider | 2013-12-02 12:24:53 +0100 |
commit | 70f3d788a43072ee4f10c3a67cc92fbb2bff5eee (patch) | |
tree | d8141c7d27011270e7867f8dae5812d8a4ef978a /src/timeoutdialog.h | |
parent | [Experimental] Button works fine now. (diff) | |
download | beamergui-70f3d788a43072ee4f10c3a67cc92fbb2bff5eee.tar.gz beamergui-70f3d788a43072ee4f10c3a67cc92fbb2bff5eee.tar.xz beamergui-70f3d788a43072ee4f10c3a67cc92fbb2bff5eee.zip |
[Experimental] Timeout + revert functionality
Diffstat (limited to 'src/timeoutdialog.h')
-rw-r--r-- | src/timeoutdialog.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 <QtGui/QApplication> +#include <QProgressDialog> +#include <QTimer> + +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 |