From c034fce78687a7d65c61aa0348d09b4afea3648c Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 27 Nov 2016 04:43:53 +0100 Subject: Add free space widget to status bar Red is used, green is free, obviously... --- torrentwidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'torrentwidget.h') diff --git a/torrentwidget.h b/torrentwidget.h index 2288e60..65c1161 100644 --- a/torrentwidget.h +++ b/torrentwidget.h @@ -5,9 +5,9 @@ #include #include #include +#include class QPushButton; -class QLineEdit; class QTreeView; class QStandardItemModel; class QLabel; @@ -30,11 +30,13 @@ class TorrentWidget : public QWidget { TorrentDisplay *torrentDisplay() { return mTorrentDisplay; } QTreeView *torrentFileView() { return mFileView; } void setProgressBar(QProgressBar *progressBar) { mProgressBar = progressBar; } + const QString currentDir() const { return mDir->text(); } ~TorrentWidget(); signals: void statusMessage(const QString &msg); void selectionCountChanged(const QString &msg); + void freeSpaceChanged(const QString &dir); public slots: void selectDir(); -- cgit v1.2.3-70-g09d2