From 0e02ad100b0e96c77b6030853bd88a6d4706a776 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 6 Dec 2016 11:18:07 +0100 Subject: Prettify ProgressDialog Make it fixed width, show only the filename from the source instead of the full path and elide text if necessary. --- filewidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'filewidget.cpp') diff --git a/filewidget.cpp b/filewidget.cpp index 409c551..6905c53 100644 --- a/filewidget.cpp +++ b/filewidget.cpp @@ -514,7 +514,8 @@ void FileWidget::addAsOrigin(){ void FileWidget::setupProgress(QString file, qint64 size){ mCopyProgress->setMaximum(size / 1024 / 1024); mCopyProgress->setValue(0); - QString progressLabel = QString(tr("Copying %1")).arg(file); + QFileInfo fi(file); + QString progressLabel = QString(tr("Copying %1")).arg(fi.fileName()); mCopyProgress->setLabelText(progressLabel); } -- cgit v1.2.3-70-g09d2