diff options
Diffstat (limited to 'progressdialog.h')
-rw-r--r-- | progressdialog.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/progressdialog.h b/progressdialog.h new file mode 100644 index 0000000..6aee406 --- /dev/null +++ b/progressdialog.h @@ -0,0 +1,27 @@ +#ifndef PROGRESSDIALOG_H +#define PROGRESSDIALOG_H + +#include <QDialog> +#include <QLabel> +#include <QProgressBar> + +class ProgressDialog : public QDialog { + Q_OBJECT + public: + ProgressDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); + void setLabelText(const QString &text) { mLabel->setText(text); } + void setMaximum(int max) { mProgress->setMaximum(max); } + + public slots: + void setValue(int val); + + signals: + void cancelled(); + + private: + QLabel *mLabel; + QProgressBar *mProgress; + +}; + +#endif // PROGRESSDIALOG_H |