┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbarspaceinfo.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-04-10 11:54:04 +0000
committerPeter Penz <[email protected]>2007-04-10 11:54:04 +0000
commit4fcc56a6200804cb4e15f3eab9cb0acd0268132c (patch)
tree06697287afbd3ff4871aba5e13e7cc2d72be9a47 /src/statusbarspaceinfo.cpp
parent6422ae393ed378f8dcde0bf35e1f8d67a5df2295 (diff)
fix #144021: show free space in GB instead of used space in percent
svn path=/trunk/KDE/kdebase/apps/; revision=652207
Diffstat (limited to 'src/statusbarspaceinfo.cpp')
-rw-r--r--src/statusbarspaceinfo.cpp4
1 files changed, 2 insertions, 2 deletions
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,