#ifndef PROGRESSDIALOG_H #define PROGRESSDIALOG_H #include #include #include 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