diff options
author | Arno <arno@disconnect.de> | 2016-12-06 12:14:47 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-12-06 12:14:47 +0100 |
commit | 997ed9156ba7a1942cebd487fd5cc2818220fa78 (patch) | |
tree | 3b9d5a63b9235e3fa9ce8e4f9078991fc14738b3 /progressdialog.cpp | |
parent | a68cf88e69c65014f2e528aa26db42b4808c3b64 (diff) | |
download | ShemovCleaner-997ed9156ba7a1942cebd487fd5cc2818220fa78.tar.gz ShemovCleaner-997ed9156ba7a1942cebd487fd5cc2818220fa78.tar.bz2 ShemovCleaner-997ed9156ba7a1942cebd487fd5cc2818220fa78.zip |
Add a summary to ProgressDialog
Show how many files we have, and display the transfer rate in Megabytes
per second. Can't believe that it worked right from the start :)
Diffstat (limited to 'progressdialog.cpp')
-rw-r--r-- | progressdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/progressdialog.cpp b/progressdialog.cpp index 2f51857..d95f1e1 100644 --- a/progressdialog.cpp +++ b/progressdialog.cpp @@ -8,6 +8,7 @@ ProgressDialog::ProgressDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(par mSrc = new QLabel; mDst = new QLabel; mProgress = new QProgressBar; + mSum = new QLabel(tr("Wait for it...")); QPushButton *cancelBtn = new QPushButton(tr("Cancel")); connect(cancelBtn, SIGNAL(clicked()), this, SIGNAL(cancelled())); QHBoxLayout *btnLayout = new QHBoxLayout; @@ -18,6 +19,7 @@ ProgressDialog::ProgressDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(par mainLayout->addWidget(mSrc); mainLayout->addWidget(mDst); mainLayout->addWidget(mProgress); + mainLayout->addWidget(mSum); mainLayout->addLayout(btnLayout); setMaximumWidth(400); setMinimumWidth(400); |