diff options
| author | Méven Car <[email protected]> | 2020-05-12 08:26:11 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2020-06-08 07:49:45 +0200 |
| commit | bf4388c75525cffd150a51e6c4e0455f60db520f (patch) | |
| tree | fafdc629caefd4af536665119f0fababccca97ac /src/statusbar/statusbarspaceinfo.h | |
| parent | f7a3318fa51dc340e8615009c43ba3a53d9c7012 (diff) | |
Status bar: Hide the space free bar when size is unknown
Summary:
BUG: 420027
BUG: 422226
FIXED-IN: 20.08
Test Plan: {F8312398}
Reviewers: #dolphin, ngraham, broulik, #vdg, elvisangelaccio
Reviewed By: #dolphin, ngraham, #vdg, elvisangelaccio
Subscribers: elvisangelaccio, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D29213
Diffstat (limited to 'src/statusbar/statusbarspaceinfo.h')
| -rw-r--r-- | src/statusbar/statusbarspaceinfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/statusbar/statusbarspaceinfo.h b/src/statusbar/statusbarspaceinfo.h index 24f8b7f29..0b0d787dd 100644 --- a/src/statusbar/statusbarspaceinfo.h +++ b/src/statusbar/statusbarspaceinfo.h @@ -42,6 +42,10 @@ public: explicit StatusBarSpaceInfo(QWidget* parent = nullptr); ~StatusBarSpaceInfo() override; + /** + * Use this to set the widget visibility as it can hide itself + */ + void setShown(bool); void setUrl(const QUrl& url); QUrl url() const; @@ -58,6 +62,8 @@ private slots: private: QScopedPointer<SpaceInfoObserver> m_observer; QUrl m_url; + bool m_ready; + bool m_shown; }; #endif |
