]> cloud.milkyroute.net Git - dolphin.git/commitdiff
* minor coding style fixes
authorPeter Penz <peter.penz19@gmail.com>
Fri, 28 Mar 2008 06:32:41 +0000 (06:32 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 28 Mar 2008 06:32:41 +0000 (06:32 +0000)
* 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
src/statusbarspaceinfo.h

index 8ee98a3d0cfa6208cc51bce1c8fe77ece6c16ba3..555cfb8917558c3010bfd56cb80e91c000c51d71 100644 (file)
@@ -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());
 
index 99a0c78b50e47c4742d8e38d4f7837ae9aa91942..eaecae8b4606a83c97a75d5ca659b8520eb1d6cf 100644 (file)
@@ -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();