┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarspaceinfo.h
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2008-07-18 22:22:33 +0000
committerRafael Fernández López <[email protected]>2008-07-18 22:22:33 +0000
commitdc4827579d919034b06063075ef3b22f4a3cbc5e (patch)
tree4672fa574a971eb9c24fb8841c2074ad0cb379bc /src/statusbarspaceinfo.h
parent08989d295c6499e6f9e40211d0c76e66800ee25a (diff)
The space info widget now inherits KCapacityBar. Two things to check:
- Align vertically the text correctly - Minimum width of the widget (not forcing it to 200) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=834445
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