┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarspaceinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusbarspaceinfo.h')
-rw-r--r--src/statusbarspaceinfo.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/statusbarspaceinfo.h b/src/statusbarspaceinfo.h
index eaecae8b4..d6caaa79e 100644
--- a/src/statusbarspaceinfo.h
+++ b/src/statusbarspaceinfo.h
@@ -24,16 +24,17 @@
#include <QColor>
#include <QKeyEvent>
-#include <QProgressBar>
#include <QString>
+#include <kcapacitybar.h>
+
class KDiskFreeSp;
/**
* @short Shows the available space for the volume represented
* by the given URL as part of the status bar.
*/
-class StatusBarSpaceInfo : public QProgressBar
+class StatusBarSpaceInfo : public KCapacityBar
{
Q_OBJECT
@@ -44,9 +45,6 @@ public:
void setUrl(const KUrl& url);
const KUrl& url() const;
- /** @see QProgressBar::text() */
- virtual QString text() const;
-
private slots:
void slotFoundMountPoint(const QString& mountPoint,
quint64 kBSize,
@@ -64,7 +62,6 @@ private:
bool m_gettingSize;
bool m_foundMountPoint;
KUrl m_url;
- QString m_text;
};
inline const KUrl& StatusBarSpaceInfo::url() const