diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-07-17 18:58:14 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-07-17 18:58:14 +0000 |
commit | e0970817b0d8b426f4b26090017868067d0f516e (patch) | |
tree | ed91f8b38a7ea89daa7613c032e3ab89a330da56 | |
parent | 60468fe6ac3d33ccca5500260587cb5f4fb3d30d (diff) | |
download | rockbox-e0970817b0d8b426f4b26090017868067d0f516e.tar.gz rockbox-e0970817b0d8b426f4b26090017868067d0f516e.zip |
Change System Info filesystem details to table.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30152 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/sysinfo.cpp | 10 |
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() | |||
60 | } | 60 | } |
61 | info += "<hr/>"; | 61 | info += "<hr/>"; |
62 | 62 | ||
63 | info += "<b>" + tr("Filesystem") + "</b><br/>"; | 63 | info += "<b>" + tr("Filesystem") + "</b>"; |
64 | QStringList drives = Utils::mountpoints(); | 64 | QStringList drives = Utils::mountpoints(); |
65 | info += "<table>"; | ||
66 | info += "<tr><td>" + tr("Mountpoint") + "</td><td>" + tr("Label") | ||
67 | + "</td><td>" + tr("Free") + "</td><td>" + tr("Total") + "</td></tr>"; | ||
65 | for(int i = 0; i < drives.size(); i++) { | 68 | for(int i = 0; i < drives.size(); i++) { |
66 | info += tr("%1, %4 %2 GiB of %3 GiB available") | 69 | info += tr("<tr><td>%1</td><td>%4</td><td>%2 GiB</td><td>%3 GiB</td></tr>") |
67 | .arg(QDir::toNativeSeparators(drives.at(i))) | 70 | .arg(QDir::toNativeSeparators(drives.at(i))) |
68 | .arg((double)Utils::filesystemFree(drives.at(i)) / (1<<30), 0, 'f', 2) | 71 | .arg((double)Utils::filesystemFree(drives.at(i)) / (1<<30), 0, 'f', 2) |
69 | .arg((double)Utils::filesystemTotal(drives.at(i)) / (1<<30), 0, 'f', 2) | 72 | .arg((double)Utils::filesystemTotal(drives.at(i)) / (1<<30), 0, 'f', 2) |
70 | .arg(Utils::filesystemName(drives.at(i))); | 73 | .arg(Utils::filesystemName(drives.at(i))); |
71 | if(i + 1 < drives.size()) | ||
72 | info += "<br/>"; | ||
73 | } | 74 | } |
75 | info += "</table>"; | ||
74 | info += "<hr/>"; | 76 | info += "<hr/>"; |
75 | 77 | ||
76 | return info; | 78 | return info; |