diff options
| author | Peter Penz <[email protected]> | 2008-10-05 21:13:50 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-10-05 21:13:50 +0000 |
| commit | 2efa5667f6dcde4429ec259c4ac703b9d99fb4bc (patch) | |
| tree | f75ad03895a55b2bcb14214a46cbc023a6ea14f1 /src/statusbarspaceinfo.h | |
| parent | f47df895c4c760c16b56579be2af3a14cc39048f (diff) | |
do only a polling of the available space when the widget is visible
svn path=/trunk/KDE/kdebase/apps/; revision=868270
Diffstat (limited to 'src/statusbarspaceinfo.h')
| -rw-r--r-- | src/statusbarspaceinfo.h | 7 |
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 |
