X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c8a4f1fd8d3c9b50e51b7234123b3fbe0b979552..2b951edfdf0fd3460c595ecb8aed180e1da920f7:/src/statusbarspaceinfo.cpp diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp index a21f22c32..4322658d2 100644 --- a/src/statusbarspaceinfo.cpp +++ b/src/statusbarspaceinfo.cpp @@ -90,7 +90,7 @@ void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */) } painter.drawRect(QRect(left, barTop + 2, right, barHeight - 1)); - text = i18n("%1% of %2 used", 100 - (int)(100.0 * m_kBAvailable / m_kBSize), KIO::convertSizeFromKiB(m_kBSize)); + text = i18n("%1 free", KIO::convertSizeFromKiB(m_kBAvailable)); } else { if (m_gettingSize) { text = i18n("Getting size..."); @@ -100,7 +100,7 @@ void StatusBarSpaceInfo::paintEvent(QPaintEvent* /* event */) } } - // draw text (usually 'X% of Y GB used') + // draw text painter.setPen(KGlobalSettings::textColor()); painter.drawText(QRect(1, 1, barWidth - 2, barHeight + 6), Qt::AlignCenter | Qt::TextWordWrap,