summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/sysinfo.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-28 18:06:55 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-28 18:06:55 +0000
commit9aab06ba0dd71e4095b654ae988377d41ba2dd0f (patch)
tree08ba6294f7b15150432f50848cca035509bf54c4 /rbutil/rbutilqt/sysinfo.cpp
parentb4beb05d233a1eab3198edc90ea4158ed3581e6b (diff)
downloadrockbox-9aab06ba0dd71e4095b654ae988377d41ba2dd0f.tar.gz
rockbox-9aab06ba0dd71e4095b654ae988377d41ba2dd0f.tar.bz2
rockbox-9aab06ba0dd71e4095b654ae988377d41ba2dd0f.zip
W32: Make System Info screen also show the device description.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17845 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/sysinfo.cpp')
-rw-r--r--rbutil/rbutilqt/sysinfo.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/sysinfo.cpp b/rbutil/rbutilqt/sysinfo.cpp
index 4cd2666e8b..7ca4b8585c 100644
--- a/rbutil/rbutilqt/sysinfo.cpp
+++ b/rbutil/rbutilqt/sysinfo.cpp
@@ -42,11 +42,13 @@ void Sysinfo::updateSysinfo(void)
info += tr("<b>Permissions:</b><br/>%1<hr/>").arg(Detect::userPermissionsString());
#endif
info += tr("<b>Attached USB devices:</b><br/>");
- QList<uint32_t> usbids = Detect::listUsbIds();
- for(int i = 0; i < usbids.size(); i++)
- info += tr("VID: %1 PID: %2<br/>")
- .arg((usbids.at(i)&0xffff0000)>>16, 4, 16, QChar('0'))
- .arg(usbids.at(i)&0xffff, 4, 16, QChar('0'));
+ QMap<uint32_t, QString> usbids = Detect::listUsbDevices();
+ QList<uint32_t> usbkeys = usbids.keys();
+ for(int i = 0; i < usbkeys.size(); i++)
+ info += tr("VID: %1 PID: %2, %3<br/>")
+ .arg((usbkeys.at(i)&0xffff0000)>>16, 4, 16, QChar('0'))
+ .arg(usbkeys.at(i)&0xffff, 4, 16, QChar('0'))
+ .arg(usbids.value(usbkeys.at(i)));
ui.textBrowser->setHtml(info);
}