blob: eb0f969920b3da715b713ed09d606d118fe3c9cf (
plain) (
tree)
|
|
// Copyright 2013, University of Freiburg,
// Author: Manuel Schneider <ms1144>
#ifndef TIMEOUTDIALOG_H
#define TIMEOUTDIALOG_H
#include <QProgressDialog>
#include <QTimer>
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
|