mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Show cluster size in System Info dialog.
Enlarge the default size of the dialog to something more reasonable for the extended information displayed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30215 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
743308e882
commit
1ec180803a
2 changed files with 7 additions and 5 deletions
|
|
@ -64,13 +64,15 @@ QString Sysinfo::getInfo()
|
||||||
QStringList drives = Utils::mountpoints();
|
QStringList drives = Utils::mountpoints();
|
||||||
info += "<table>";
|
info += "<table>";
|
||||||
info += "<tr><td>" + tr("Mountpoint") + "</td><td>" + tr("Label")
|
info += "<tr><td>" + tr("Mountpoint") + "</td><td>" + tr("Label")
|
||||||
+ "</td><td>" + tr("Free") + "</td><td>" + tr("Total") + "</td></tr>";
|
+ "</td><td>" + tr("Free") + "</td><td>" + tr("Total") + "</td><td>"
|
||||||
|
+ tr("Cluster Size") + "</td></tr>";
|
||||||
for(int i = 0; i < drives.size(); i++) {
|
for(int i = 0; i < drives.size(); i++) {
|
||||||
info += tr("<tr><td>%1</td><td>%4</td><td>%2 GiB</td><td>%3 GiB</td></tr>")
|
info += tr("<tr><td>%1</td><td>%4</td><td>%2 GiB</td><td>%3 GiB</td><td>%5</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)))
|
||||||
|
.arg(Utils::filesystemClusterSize(drives.at(i)));
|
||||||
}
|
}
|
||||||
info += "</table>";
|
info += "</table>";
|
||||||
info += "<hr/>";
|
info += "<hr/>";
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>600</width>
|
||||||
<height>300</height>
|
<height>400</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle" >
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue