Cosmetics

This commit is contained in:
bsongis
2015-01-04 17:33:34 +01:00
parent c50677881f
commit a2dc0040b0
3 changed files with 7 additions and 2 deletions
+1 -2
View File
@@ -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();
}
+5
View File
@@ -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);
+1
View File
@@ -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();