┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar/statusbarspaceinfo.cpp
diff options
context:
space:
mode:
authorShubham <[email protected]>2022-05-18 18:42:51 +0000
committerNate Graham <[email protected]>2022-05-18 18:42:51 +0000
commit6a5ad6b0ed5d4bda2e61a49f84cf63d0e2ace89a (patch)
tree0250a593bc65093871d5916f453ced158883d8f1 /src/statusbar/statusbarspaceinfo.cpp
parentb700c94d3eab387cfdef5aea5460fde5d2efa5bd (diff)
Add tooltip to free space info widget showing full disk capacity
BUG: 452867 FIXED-IN: 22.08
Diffstat (limited to 'src/statusbar/statusbarspaceinfo.cpp')
-rw-r--r--src/statusbar/statusbarspaceinfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/statusbar/statusbarspaceinfo.cpp b/src/statusbar/statusbarspaceinfo.cpp
index de91f1e1a..f6ea9e4e1 100644
--- a/src/statusbar/statusbarspaceinfo.cpp
+++ b/src/statusbar/statusbarspaceinfo.cpp
@@ -114,6 +114,7 @@ void StatusBarSpaceInfo::slotValuesChanged()
const int percentUsed = qRound(100.0 * qreal(used) / qreal(size));
setText(i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(available)));
+ setToolTip(i18nc("tooltip:status Free disk space", "%1 free out of %2 (%3% used)", KIO::convertSize(available), KIO::convertSize(size), percentUsed));
setUpdatesEnabled(false);
setValue(percentUsed);
setUpdatesEnabled(true);