#ifndef STATUSBARSPACEINFO_H
#define STATUSBARSPACEINFO_H
-#include <kurl.h>
+#include <KUrl>
#include <QColor>
#include <QKeyEvent>
Q_OBJECT
public:
- explicit StatusBarSpaceInfo(QWidget* parent);
+ explicit StatusBarSpaceInfo(QWidget* parent = 0);
virtual ~StatusBarSpaceInfo();
void setUrl(const KUrl& url);
- 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();
+ /**
+ * Calculates the space information for the current set URL.
+ */
+ void calculateSpaceInfo();
private:
quint64 m_kBSize;
QTimer* m_timer;
};
-inline const KUrl& StatusBarSpaceInfo::url() const
-{
- return m_url;
-}
-
#endif