summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-26 20:54:49 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-07-26 20:54:49 +0000
commit1ec180803a43396f1d2fa7d4b7df77005e8aac28 (patch)
tree95ec6a249414cc609da31b863881e7bfcaae66df
parent743308e8828d36ce53fbf25a6fd815dad74b7d59 (diff)
downloadrockbox-1ec180803a43396f1d2fa7d4b7df77005e8aac28.tar.gz
rockbox-1ec180803a43396f1d2fa7d4b7df77005e8aac28.tar.bz2
rockbox-1ec180803a43396f1d2fa7d4b7df77005e8aac28.zip
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
-rw-r--r--rbutil/rbutilqt/sysinfo.cpp8
-rw-r--r--rbutil/rbutilqt/sysinfofrm.ui4
2 files changed, 7 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/sysinfo.cpp b/rbutil/rbutilqt/sysinfo.cpp
index 7d2b2abf17..1b2f44923b 100644
--- a/rbutil/rbutilqt/sysinfo.cpp
+++ b/rbutil/rbutilqt/sysinfo.cpp
@@ -64,13 +64,15 @@ QString Sysinfo::getInfo()
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>";
+ + "</td><td>" + tr("Free") + "</td><td>" + tr("Total") + "</td><td>"
+ + tr("Cluster Size") + "</td></tr>";
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((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)));
+ .arg(Utils::filesystemName(drives.at(i)))
+ .arg(Utils::filesystemClusterSize(drives.at(i)));
}
info += "</table>";
info += "<hr/>";
diff --git a/rbutil/rbutilqt/sysinfofrm.ui b/rbutil/rbutilqt/sysinfofrm.ui
index b2340a6310..c7e7716f77 100644
--- a/rbutil/rbutilqt/sysinfofrm.ui
+++ b/rbutil/rbutilqt/sysinfofrm.ui
@@ -5,8 +5,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>400</width>
- <height>300</height>
+ <width>600</width>
+ <height>400</height>
</rect>
</property>
<property name="windowTitle" >