mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 00:11:21 +00:00
* 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
This commit is contained in:
parent
1fed8b968c
commit
f40e6db807
|
@ -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());
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue