summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rbutil/rbutilqt/sysinfo.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/sysinfo.cpp b/rbutil/rbutilqt/sysinfo.cpp
index bd3f7b2e7f..7d2b2abf17 100644
--- a/rbutil/rbutilqt/sysinfo.cpp
+++ b/rbutil/rbutilqt/sysinfo.cpp
@@ -60,17 +60,19 @@ QString Sysinfo::getInfo()
}
info += "<hr/>";
- info += "<b>" + tr("Filesystem") + "</b><br/>";
+ info += "<b>" + tr("Filesystem") + "</b>";
QStringList drives = Utils::mountpoints();
+ info += "<table>";
+ info += "<tr><td>" + tr("Mountpoint") + "</td><td>" + tr("Label")
+ + "</td><td>" + tr("Free") + "</td><td>" + tr("Total") + "</td></tr>";
for(int i = 0; i < drives.size(); i++) {
- info += tr("%1, %4 %2 GiB of %3 GiB available")
+ info += tr("<tr><td>%1</td><td>%4</td><td>%2 GiB</td><td>%3 GiB</td></tr>")
.arg(QDir::toNativeSeparators(drives.at(i)))
.arg((double)Utils::filesystemFree(drives.at(i)) / (1<<30), 0, 'f', 2)
.arg((double)Utils::filesystemTotal(drives.at(i)) / (1<<30), 0, 'f', 2)
.arg(Utils::filesystemName(drives.at(i)));
- if(i + 1 < drives.size())
- info += "<br/>";
}
+ info += "</table>";
info += "<hr/>";
return info;