Cosmetics

This commit is contained in:
bsongis
2015-01-04 16:18:38 +01:00
parent fb0df7d058
commit 9df46efcd8
2 changed files with 11 additions and 7 deletions
+9 -5
View File
@@ -11,6 +11,8 @@ ui(new Ui::ProgressWidget)
{
ui->setupUi(this);
ui->info->hide();
ui->checkBox->hide();
ui->textEdit->hide();
#ifdef __APPLE__
QFont newFont("Courier", 13);
@@ -20,11 +22,6 @@ ui(new Ui::ProgressWidget)
QFont newFont("Courier", 9);
ui->textEdit->setFont(newFont);
#endif
if (g.outputDisplayDetails())
ui->checkBox->setChecked(true);
else
ui->textEdit->setVisible(false);
}
ProgressWidget::~ProgressWidget()
@@ -56,6 +53,13 @@ void ProgressWidget::setValue(int value)
void ProgressWidget::addText(const QString &text)
{
ui->checkBox->setVisible(true);
if (g.outputDisplayDetails()) {
ui->checkBox->setChecked(true);
ui->textEdit->setVisible(true);
}
QTextCursor cursor(ui->textEdit->textCursor());
// is the scrollbar at the end?