X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8fc4bc196ac55f30e22113ab44b404e641679301..b1c9b5126d:/src/statusbarspaceinfo.h diff --git a/src/statusbarspaceinfo.h b/src/statusbarspaceinfo.h index 93ea3fe9f..06d060538 100644 --- a/src/statusbarspaceinfo.h +++ b/src/statusbarspaceinfo.h @@ -29,6 +29,8 @@ #include class KDiskFreeSp; +class QHideEvent; +class QShowEvent; /** * @short Shows the available space for the volume represented @@ -45,24 +47,18 @@ public: void setUrl(const KUrl& url); const KUrl& url() const; -private slots: - void slotFoundMountPoint(const QString& mountPoint, - quint64 kBSize, - quint64 kBUsed, - quint64 kBAvailable); - - void slotDiskFreeSpaceDone(); +protected: + void showEvent(QShowEvent* event); + void hideEvent(QHideEvent* event); +private slots: /** Refreshes the space information for the current set URL. */ void refresh(); - void showGettingSizeInfo(); - private: - bool m_gettingSize; - bool m_foundMountPoint; quint64 m_kBSize; KUrl m_url; + QTimer* m_timer; }; inline const KUrl& StatusBarSpaceInfo::url() const