summaryrefslogtreecommitdiffstats
path: root/progressdialog.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-12-06 11:34:41 +0100
committerArno <arno@disconnect.de>2016-12-06 11:34:41 +0100
commita68cf88e69c65014f2e528aa26db42b4808c3b64 (patch)
tree430cfe8249357f38ede3e83fae4959b1a9f62fe4 /progressdialog.h
parent0e02ad100b0e96c77b6030853bd88a6d4706a776 (diff)
downloadShemovCleaner-a68cf88e69c65014f2e528aa26db42b4808c3b64.tar.gz
ShemovCleaner-a68cf88e69c65014f2e528aa26db42b4808c3b64.tar.bz2
ShemovCleaner-a68cf88e69c65014f2e528aa26db42b4808c3b64.zip
Add destination to ProgressDialog
Elide the text if necessary. Only show the destination directory.
Diffstat (limited to 'progressdialog.h')
-rw-r--r--progressdialog.h5
1 files changed, 3 insertions, 2 deletions
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;
};