From f40e6db807380b51a7b8a87d50dd6032f9a2ff55 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 28 Mar 2008 06:32:41 +0000 Subject: [PATCH] * 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 --- src/statusbarspaceinfo.cpp | 12 +++++++----- src/statusbarspaceinfo.h | 2 +- 2 files changed, 8 insertions(+), 6 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(value())) || (kBAvailable != static_cast(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()); diff --git a/src/statusbarspaceinfo.h b/src/statusbarspaceinfo.h index 99a0c78b5..eaecae8b4 100644 --- a/src/statusbarspaceinfo.h +++ b/src/statusbarspaceinfo.h @@ -53,7 +53,7 @@ private slots: quint64 kBUsed, quint64 kBAvailable); - void slotKDFSDone(); + void slotDiskFreeSpaceDone(); /** Refreshes the space information for the current set URL. */ void refresh(); -- 2.47.3