┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarspaceinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusbarspaceinfo.h')
-rw-r--r--src/statusbarspaceinfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/statusbarspaceinfo.h b/src/statusbarspaceinfo.h
index 839c74e1a..7a9fae36d 100644
--- a/src/statusbarspaceinfo.h
+++ b/src/statusbarspaceinfo.h
@@ -29,6 +29,8 @@
#include <kcapacitybar.h>
class KDiskFreeSp;
+class QHideEvent;
+class QShowEvent;
/**
* @short Shows the available space for the volume represented
@@ -45,6 +47,10 @@ public:
void setUrl(const KUrl& url);
const KUrl& url() const;
+protected:
+ void showEvent(QShowEvent* event);
+ void hideEvent(QHideEvent* event);
+
private slots:
/** Refreshes the space information for the current set URL. */
void refresh();
@@ -52,6 +58,7 @@ private slots:
private:
quint64 m_kBSize;
KUrl m_url;
+ QTimer* m_timer;
};
inline const KUrl& StatusBarSpaceInfo::url() const