From dc4827579d919034b06063075ef3b22f4a3cbc5e Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Fri, 18 Jul 2008 22:22:33 +0000 Subject: 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: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=834445 --- src/statusbarspaceinfo.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/statusbarspaceinfo.h') 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 #include -#include #include +#include + 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 -- cgit v1.3