diff options
author | Arno <arno@disconnect.de> | 2016-09-04 03:32:56 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-09-04 03:32:56 +0200 |
commit | 8945f641f468e373b4d8d907bcc2f5be2922962e (patch) | |
tree | 93b388c81a31abbc9573603e43017098a78853ba /shemovcleaner.h | |
parent | e11e257f88726fd04774bf0ca4584d1678bc7f9b (diff) | |
download | ShemovCleaner-8945f641f468e373b4d8d907bcc2f5be2922962e.tar.gz ShemovCleaner-8945f641f468e373b4d8d907bcc2f5be2922962e.tar.bz2 ShemovCleaner-8945f641f468e373b4d8d907bcc2f5be2922962e.zip |
Display duration and num. of selected Files
When selecting files in FileWidget, calculate the total duration and
display it in the status bar.
Also count the selected Files and show them. Update status bar on
changing tabs.
Diffstat (limited to 'shemovcleaner.h')
-rw-r--r-- | shemovcleaner.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shemovcleaner.h b/shemovcleaner.h index e21dbe4..441b0a3 100644 --- a/shemovcleaner.h +++ b/shemovcleaner.h @@ -12,12 +12,15 @@ class QAction; class ShemovCleaner : public QMainWindow { Q_OBJECT public: + enum Tabs { Torrents = 0, Videos = 1 }; ShemovCleaner(QWidget *parent = 0, Qt::WindowFlags f = 0); public slots: void statusBarMessage(const QString &msg); void setSelectionCount(const QString &msg); + void setDuration(const QString &msg); void configure(); + void tabChanged(int idx); protected: virtual void closeEvent(QCloseEvent *e); @@ -28,6 +31,7 @@ class ShemovCleaner : public QMainWindow { void openDatabase(); QAction *createSeparator(); QLabel *mSelected; + QLabel *mDuration; QTabWidget *mTab; TorrentWidget *mTorrentTab; FileWidget *mFileTab; |