summaryrefslogtreecommitdiffstats
path: root/archivebrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'archivebrowser.cpp')
-rw-r--r--archivebrowser.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/archivebrowser.cpp b/archivebrowser.cpp
index a30db3d..1cae7cf 100644
--- a/archivebrowser.cpp
+++ b/archivebrowser.cpp
@@ -268,9 +268,12 @@ void ArchiveBrowser::moveToUSB(){
mCopyWorker->appendData(source, child.data(ArchiveBrowserModel::GenericIdRole));
}
}
+ QString lt;
+ lt.fill(QChar(0x26A4), 32);
mUSBProgress = new QProgressDialog(this);
+ mUSBProgress->setWindowTitle(tr("Copying Files..."));
+ mUSBProgress->setLabelText(lt);
connect(mCopyWorker, &CopyWorker::bytesRead, mUSBProgress, &QProgressDialog::setValue);
- mUSBProgress->setLabelText(tr("Copying files..."));
mUSBProgress->setMinimum(0);
mUSBProgress->setMaximum(mCopyWorker->max());
mUSBProgress->show();
@@ -379,7 +382,12 @@ void ArchiveBrowser::copySuccess(QString success){
}
void ArchiveBrowser::setCopyFile(QString file){
- QString msg = QString(tr("Copying %1")).arg(file);
+ QString msg = QString("%1").arg(file);
+ if(msg.length() > 32){
+ msg.truncate(28);
+ msg.append("...");
+
+ }
mUSBProgress->setLabelText(msg);
}