summaryrefslogtreecommitdiffstats
path: root/progressdialog.h
blob: d41a5157d9d0a24626096fa9ba119e3c37d88c10 (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);
        void setMaximum(int max) { mProgress->setMaximum(max); }

    public slots:
        void setValue(int val);

    signals:
        void cancelled();

    private:
        QLabel *mLabel;
        QProgressBar *mProgress;

};

#endif // PROGRESSDIALOG_H