]>
cloud.milkyroute.net Git - dolphin.git/blob - src/statusbar/statusbarspaceinfo.h
23a77d045e4ce3d1f46c4c97ec6af17c1cbab6a0
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
;
46 QSize
minimumSizeHint() const override
;
51 void slotValuesChanged();
54 QScopedPointer
<SpaceInfoObserver
> m_observer
;
55 KCapacityBar
*m_capacityBar
;
56 QToolButton
*m_textInfoButton
;