Icon fixed in accrealtime dialog.
[speedfreak] / Client / calibratedialog.cpp
1 /*
2  * Calibrate dialog
3  *
4  * @author     Kai Rasilainen <kai.rasilainen@fudeco.com>
5  * @copyright  (c) 2010 Speed Freak team
6  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
7  */
8
9 #include "calibratedialog.h"
10 #include "ui_calibratedialog.h"
11
12 CalibrateDialog::CalibrateDialog(QWidget *parent) :
13     QDialog(parent),
14     ui(new Ui::CalibrateDialog)
15 {
16     ui->setupUi(this);
17     this->setWindowTitle("Calibrating...");
18 }
19
20 CalibrateDialog::~CalibrateDialog()
21 {
22     delete ui;
23 }
24
25 void CalibrateDialog::changeEvent(QEvent *e)
26 {
27     QDialog::changeEvent(e);
28     switch (e->type()) {
29     case QEvent::LanguageChange:
30         ui->retranslateUi(this);
31         break;
32     default:
33         break;
34     }
35 }
36
37 void CalibrateDialog::setProgressValue(int value)
38 {
39     ui->progressBar->setValue(value);
40 }
41
42 void CalibrateDialog::resetProgressValue()
43 {
44     ui->progressBar->reset();
45 }
46
47 void CalibrateDialog::setMaxValue(int max)
48 {
49     ui->progressBar->setMaximum( max );
50 }