┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarspaceinfo.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-03-28 06:32:41 +0000
committerPeter Penz <[email protected]>2008-03-28 06:32:41 +0000
commitf40e6db807380b51a7b8a87d50dd6032f9a2ff55 (patch)
tree4fb1a846c6ba6b7120998c33853ad9c4c970abc4 /src/statusbarspaceinfo.cpp
parent1fed8b968cdf4e3dd9d5d9c10843a155e06ce172 (diff)
* minor coding style fixes
* replaced "Free disk space could not be determined" by "Unknown size", as the string would be too long fitting into the space information widget svn path=/trunk/KDE/kdebase/apps/; revision=791051
Diffstat (limited to 'src/statusbarspaceinfo.cpp')
-rw-r--r--src/statusbarspaceinfo.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp
index 8ee98a3d0..555cfb891 100644
--- a/src/statusbarspaceinfo.cpp
+++ b/src/statusbarspaceinfo.cpp
@@ -74,18 +74,20 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint,
const bool valuesChanged = (kBUsed != static_cast<quint64>(value())) ||
(kBAvailable != static_cast<quint64>(maximum()));
if (valuesChanged) {
- m_text = i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(kBAvailable*1024));
+ m_text = i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(kBAvailable * 1024));
setMaximum(kBSize);
setValue(kBUsed);
}
}
-void StatusBarSpaceInfo::slotKDFSDone()
+void StatusBarSpaceInfo::slotDiskFreeSpaceDone()
{
- if( m_foundMountPoint )
+ if (m_foundMountPoint) {
return;
+ }
+
m_gettingSize = false;
- m_text = i18n("Free disk space could not be determined");
+ m_text = i18nc("@info:status", "Unknown size");
setMinimum(0);
setMaximum(0);
setValue(0);
@@ -116,7 +118,7 @@ void StatusBarSpaceInfo::refresh()
quint64,
quint64,
quint64)));
- connect(job, SIGNAL(done()), this, SLOT(slotKDFSDone()));
+ connect(job, SIGNAL(done()), this, SLOT(slotDiskFreeSpaceDone()));
job->readDF(mp->mountPoint());