From 598cb833aec9a404271a99eac6f7d360e62ce5c4 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 30 Jul 2018 20:36:59 +0200 Subject: Give some indication that we're copying Add a new label to the statusBar: When it's green the FileCopier is idle, when working, show the count. --- filecopier.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'filecopier.cpp') diff --git a/filecopier.cpp b/filecopier.cpp index 6256be1..dd3f679 100644 --- a/filecopier.cpp +++ b/filecopier.cpp @@ -24,6 +24,8 @@ void FileCopier::run(){ mJobs.remove(source); mAddJobMutex.unlock(); QString msg = QString(tr("Copy: %1 (%2/%3)")).arg(source).arg(QString::number(mCopied + 1)).arg(QString::number(mTotal)); + QString cmsg = QString("%1/%2").arg(QString::number(mCopied + 1)).arg(QString::number(mTotal)); + emit copying(true, cmsg); emit message(msg); QFile sFile(source); if(sFile.copy(dest)){ -- cgit v1.2.3-70-g09d2