Fixes for "Read Models and Settings from the radio": (#4291)
* show errors * close dialog in nothing in progress widget
This commit is contained in:
committed by
Bertrand Songis
parent
1202fa84fa
commit
8102f870fe
@@ -108,6 +108,11 @@ QString ProgressWidget::getText()
|
||||
return ui->textEdit->toPlainText();
|
||||
}
|
||||
|
||||
bool ProgressWidget::isEmpty() const
|
||||
{
|
||||
return ui->textEdit->toPlainText().isEmpty();
|
||||
}
|
||||
|
||||
void ProgressWidget::setProgressColor(const QColor &color)
|
||||
{
|
||||
ui->progressBar->setStyleSheet(QString("QProgressBar {text-align: center;} QProgressBar::chunk { background-color: %1; text-align:center;}:").arg(color.name()));
|
||||
|
||||
Reference in New Issue
Block a user