Cosmetics
This commit is contained in:
@@ -278,11 +278,10 @@ void FlashProcess::onFinished(int code=0)
|
||||
progress->setInfo(tr("Flashing done with errors"));
|
||||
else
|
||||
progress->setInfo(tr("Flashing done"));
|
||||
progress->addSeparator();
|
||||
|
||||
if(lfuse || hfuse || efuse) {
|
||||
addReadFuses();
|
||||
}
|
||||
progress->setValue(progress->maximum());
|
||||
progress->lock(false);
|
||||
emit finished();
|
||||
}
|
||||
|
||||
@@ -46,6 +46,11 @@ void ProgressWidget::setMaximum(int value)
|
||||
ui->progressBar->setMaximum(value);
|
||||
}
|
||||
|
||||
int ProgressWidget::maximum()
|
||||
{
|
||||
return ui->progressBar->maximum();
|
||||
}
|
||||
|
||||
void ProgressWidget::setValue(int value)
|
||||
{
|
||||
ui->progressBar->setValue(value);
|
||||
|
||||
@@ -18,6 +18,7 @@ class ProgressWidget : public QWidget
|
||||
void addText(const QString &text);
|
||||
void setInfo(const QString &text);
|
||||
void setMaximum(int value);
|
||||
int maximum();
|
||||
void setValue(int value);
|
||||
void setProgressColor(const QColor &color);
|
||||
void addSeparator();
|
||||
|
||||
Reference in New Issue
Block a user