summaryrefslogtreecommitdiffstats
path: root/torrentwidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2016-09-22 08:41:38 +0200
committerArno <arno@disconnect.de>2016-09-22 08:41:38 +0200
commit2e1c915cf2d9ec394c64ee0d6d7c705b06cce8cb (patch)
treefa2d7774987576c4d052be1a1a298afd2c7f2b41 /torrentwidget.h
parentbeb06f3603e569cfed7e0fd8bf71b4c9a8eac673 (diff)
downloadShemovCleaner-2e1c915cf2d9ec394c64ee0d6d7c705b06cce8cb.tar.gz
ShemovCleaner-2e1c915cf2d9ec394c64ee0d6d7c705b06cce8cb.tar.bz2
ShemovCleaner-2e1c915cf2d9ec394c64ee0d6d7c705b06cce8cb.zip
Give feedback on gathering data
Use the ProgressBar when gathering torrent data from a directory with many entries. Sprinkle processEvents() here and there to show the progress.
Diffstat (limited to 'torrentwidget.h')
-rw-r--r--torrentwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/torrentwidget.h b/torrentwidget.h
index 15992b3..b66fa64 100644
--- a/torrentwidget.h
+++ b/torrentwidget.h
@@ -14,6 +14,7 @@ class QLabel;
class QToolBar;
class QMenuBar;
class QKeyEvent;
+class QProgressBar;
class FileSorter;
class TorrentDisplay;
@@ -28,6 +29,7 @@ class TorrentWidget : public QWidget {
QMenuBar *menuBar() { return mMenuBar; }
TorrentDisplay *torrentDisplay() { return mTorrentDisplay; }
QTreeView *torrentFileView() { return mFileView; }
+ void setProgressBar(QProgressBar *progressBar) { mProgressBar = progressBar; }
~TorrentWidget();
signals:
@@ -36,6 +38,7 @@ class TorrentWidget : public QWidget {
public slots:
void selectDir();
+ void setDir();
void copyToClipboard();
void gatherData();
void deleteFiles();
@@ -66,6 +69,7 @@ class TorrentWidget : public QWidget {
QTreeView *mFileView;
QToolBar *mToolBar;
QMenuBar *mMenuBar;
+ QProgressBar *mProgressBar;
QAction *mRefreshA;
QAction *mDeleteA;
QAction *mMoveA;