ui(new Ui::BusyWidget)
{
ui->setupUi(this);
+ ui->progressBar->setValue(0);
}
BusyWidget::~BusyWidget()
delete ui;
}
-void BusyWidget::setText(QString text) {
- ui->label->setText(text);
+void BusyWidget::setMax(int max) {
+ ui->progressBar->setMaximum(max);
+ ui->progressBar->setValue(0);
+}
+
+void BusyWidget::tick() {
+ ui->progressBar->setValue(ui->progressBar->value()+1);
}