set layout of text of progress bar in unit test dialog

This commit is contained in:
wmayer
2017-01-16 18:48:18 +01:00
parent 082b3f8dc4
commit 69de741365

View File

@@ -87,6 +87,7 @@ UnitTestDialog::UnitTestDialog(QWidget* parent, Qt::WindowFlags f)
// we force e.g. the "Motif" style only for the progressbar to change the color to green or red.
this->progressBar->setStyle(QStyleFactory::create(QString::fromLatin1("Motif")));
setProgressColor(QColor(40,210,43)); // a darker green
this->progressBar->setAlignment(Qt::AlignCenter);
// red items
QPalette palette;