blob: 6aee406cc31c6ba459e10ba594ae3dee9c2525e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|