]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbarspaceinfo.h
Fixed regression when refactoring the Information Panel: Don't forget to give a visua...
[dolphin.git] / src / statusbarspaceinfo.h
index 839c74e1af8a45de0393778f0732b25c9c74b3c4..06d0605381681f08b3c840d41d840588711d59f1 100644 (file)
@@ -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