changed dialog title
[wpcreator] / src / progressdialog.cpp
1 #include "progressdialog.h"
2 #include "ui_progressdialog.h"
3
4 ProgressDialog::ProgressDialog(QWidget *parent) :
5     QDialog(parent),
6     m_ui(new Ui::ProgressDialog)
7 {
8     m_ui->setupUi(this);
9     this->setWindowTitle("Installing");
10     m_ui->noticedButton->setVisible(false);
11     m_ui->doneLabel->setVisible(false);
12 }
13
14 ProgressDialog::~ProgressDialog()
15 {
16     delete m_ui;
17 }
18
19 void ProgressDialog::changeEvent(QEvent *e)
20 {
21     switch (e->type()) {
22     case QEvent::LanguageChange:
23         m_ui->retranslateUi(this);
24         break;
25     default:
26         break;
27     }
28 }
29
30
31 void ProgressDialog::updateInstallationStatus(int status) {
32     m_ui->progressBar->setValue(status);
33 }
34
35 void ProgressDialog::installationFinished () {
36     m_ui->progressBar->setValue(100);
37     m_ui->progressBar->setVisible(false);
38     m_ui->noticedButton->setVisible(true);
39     m_ui->doneLabel->setVisible(true);
40 }