From 8945f641f468e373b4d8d907bcc2f5be2922962e Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 4 Sep 2016 03:32:56 +0200 Subject: 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. --- shemovcleaner.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shemovcleaner.h') 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; -- cgit v1.2.3-70-g09d2