From 9df46efcd87a826eaea1848f19b3812a26d73210 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 4 Jan 2015 16:18:38 +0100 Subject: [PATCH] Cosmetics --- companion/src/process_copy.cpp | 4 ++-- companion/src/progresswidget.cpp | 14 +++++++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/companion/src/process_copy.cpp b/companion/src/process_copy.cpp index 5c0f41791..e0a53d100 100755 --- a/companion/src/process_copy.cpp +++ b/companion/src/process_copy.cpp @@ -18,7 +18,7 @@ result(true) bool CopyProcess::run() { progress->lock(true); - progress->setInfo(tr("Copying file...")); + // progress->setInfo(tr("Copying file...")); QEventLoop loop; connect(this, SIGNAL(finished()), &loop, SLOT(quit())); @@ -39,7 +39,7 @@ void CopyProcess::onTimer() if (sourceFile.open(QIODevice::ReadOnly)) { QFile destinationFile(destination); if (destinationFile.open(QIODevice::ReadWrite)) { - progress->addText(tr("Writing file: ")); + // progress->addText(tr("Writing file: ")); for (int i=0; isetupUi(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?