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.h | |
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.h')
-rw-r--r-- | progressdialog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/progressdialog.h b/progressdialog.h index 35ede38..86a31bc 100644 --- a/progressdialog.h +++ b/progressdialog.h @@ -11,6 +11,7 @@ class ProgressDialog : public QDialog { ProgressDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); void setLabelText(const QString &src, const QString &dst); void setMaximum(int max) { mProgress->setMaximum(max); } + void setSummary(const QString &sum) { mSum->setText(sum); } public slots: void setValue(int val); @@ -21,6 +22,7 @@ class ProgressDialog : public QDialog { private: QLabel *mSrc; QLabel *mDst; + QLabel *mSum; QProgressBar *mProgress; }; |