]>
cloud.milkyroute.net Git - dolphin.git/blob - src/statusbar/statusbarspaceinfo.h
2 * SPDX-FileCopyrightText: 2006 Peter Penz (peter.penz@gmx.at) and Patrice Tremblay
4 * SPDX-License-Identifier: GPL-2.0-or-later
6 #ifndef STATUSBARSPACEINFO_H
7 #define STATUSBARSPACEINFO_H
9 #include <KCapacityBar>
17 class SpaceInfoObserver
;
20 * @short Shows the available space for the volume represented
21 * by the given URL as part of the status bar.
23 class StatusBarSpaceInfo
: public KCapacityBar
28 explicit StatusBarSpaceInfo(QWidget
*parent
= nullptr);
29 ~StatusBarSpaceInfo() override
;
32 * Use this to set the widget visibility as it can hide itself
35 void setUrl(const QUrl
&url
);
41 void showEvent(QShowEvent
*event
) override
;
42 void hideEvent(QHideEvent
*event
) override
;
43 void mousePressEvent(QMouseEvent
*event
) override
;
46 void slotValuesChanged();
49 QScopedPointer
<SpaceInfoObserver
> m_observer
;