From a68cf88e69c65014f2e528aa26db42b4808c3b64 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 6 Dec 2016 11:34:41 +0100 Subject: Add destination to ProgressDialog Elide the text if necessary. Only show the destination directory. --- progressdialog.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'progressdialog.h') diff --git a/progressdialog.h b/progressdialog.h index d41a515..35ede38 100644 --- a/progressdialog.h +++ b/progressdialog.h @@ -9,7 +9,7 @@ class ProgressDialog : public QDialog { Q_OBJECT public: ProgressDialog(QWidget *parent = 0, Qt::WindowFlags f = 0); - void setLabelText(const QString &text); + void setLabelText(const QString &src, const QString &dst); void setMaximum(int max) { mProgress->setMaximum(max); } public slots: @@ -19,7 +19,8 @@ class ProgressDialog : public QDialog { void cancelled(); private: - QLabel *mLabel; + QLabel *mSrc; + QLabel *mDst; QProgressBar *mProgress; }; -- cgit v1.2.3-70-g09d2