]>
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
20 class SpaceInfoObserver
;
23 * @short Shows the available space for the volume represented
24 * by the given URL as part of the status bar.
26 class StatusBarSpaceInfo
: public QWidget
31 explicit StatusBarSpaceInfo(QWidget
*parent
= nullptr);
32 ~StatusBarSpaceInfo() override
;
35 * Use this to set the widget visibility as it can hide itself
38 void setUrl(const QUrl
&url
);
44 void showEvent(QShowEvent
*event
) override
;
45 void hideEvent(QHideEvent
*event
) override
;
50 void slotValuesChanged();
53 QScopedPointer
<SpaceInfoObserver
> m_observer
;
54 KCapacityBar
*m_capacityBar
;
55 QToolButton
*m_textInfoButton
;