diff options
author | Arno <arno@disconnect.de> | 2016-11-27 04:43:53 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-27 04:43:53 +0100 |
commit | c034fce78687a7d65c61aa0348d09b4afea3648c (patch) | |
tree | 12053e7fb5e7e1cbae972ae3066f8b69d93d0c7b /filewidget.h | |
parent | 5cde173217fd8cb1dbc21f3ac54f18e8234e709b (diff) | |
download | ShemovCleaner-c034fce78687a7d65c61aa0348d09b4afea3648c.tar.gz ShemovCleaner-c034fce78687a7d65c61aa0348d09b4afea3648c.tar.bz2 ShemovCleaner-c034fce78687a7d65c61aa0348d09b4afea3648c.zip |
Add free space widget to status bar
Red is used, green is free, obviously...
Diffstat (limited to 'filewidget.h')
-rw-r--r-- | filewidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/filewidget.h b/filewidget.h index ef18603..a886914 100644 --- a/filewidget.h +++ b/filewidget.h @@ -8,6 +8,7 @@ #include <QMenuBar> #include <QToolBar> #include <QFileInfo> +#include <QLineEdit> class QLineEdit; class QStandardItemModel; @@ -32,6 +33,7 @@ class FileWidget : public QWidget { QTreeView *fileView() { return mFileView; } QMenuBar *menuBar() { return mMenuBar; } QToolBar *toolBar() { return mToolBar; } + const QString currentDir() const { return mDir->text(); } void setProgressBar(QProgressBar *progressBar) { mProgressBar = progressBar; } ~FileWidget(); @@ -39,6 +41,7 @@ class FileWidget : public QWidget { void statusMessage(const QString &msg); void selectionCountChanged(const QString &msg); void durationChanged(const QString &duration); + void freeSpaceChanged(const QString &dir); public slots: void fileSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected); |