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