Change System Info filesystem details to table.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30152 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
60468fe6ac
commit
e0970817b0
1 changed files with 6 additions and 4 deletions
|
@ -60,17 +60,19 @@ QString Sysinfo::getInfo()
|
||||||
}
|
}
|
||||||
info += "<hr/>";
|
info += "<hr/>";
|
||||||
|
|
||||||
info += "<b>" + tr("Filesystem") + "</b><br/>";
|
info += "<b>" + tr("Filesystem") + "</b>";
|
||||||
QStringList drives = Utils::mountpoints();
|
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++) {
|
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(QDir::toNativeSeparators(drives.at(i)))
|
||||||
.arg((double)Utils::filesystemFree(drives.at(i)) / (1<<30), 0, 'f', 2)
|
.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((double)Utils::filesystemTotal(drives.at(i)) / (1<<30), 0, 'f', 2)
|
||||||
.arg(Utils::filesystemName(drives.at(i)));
|
.arg(Utils::filesystemName(drives.at(i)));
|
||||||
if(i + 1 < drives.size())
|
|
||||||
info += "<br/>";
|
|
||||||
}
|
}
|
||||||
|
info += "</table>";
|
||||||
info += "<hr/>";
|
info += "<hr/>";
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
|
|
Loading…
Reference in a new issue