Changeset 29607 in vbox for trunk/src/VBox
- Timestamp:
- May 18, 2010 9:44:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r29437 r29607 1771 1771 { 1772 1772 QString sDetails; 1773 QString m = aDevice.GetManufacturer().trimmed(); 1774 QString p = aDevice.GetProduct().trimmed(); 1775 if (m.isEmpty() && p.isEmpty()) 1776 { 1777 sDetails = 1778 tr ("Unknown device %1:%2", "USB device details") 1779 .arg (QString().sprintf ("%04hX", aDevice.GetVendorId())) 1780 .arg (QString().sprintf ("%04hX", aDevice.GetProductId())); 1781 } 1773 if (aDevice.isNull()) 1774 sDetails = tr("Unknown device", "USB device details"); 1782 1775 else 1783 1776 { 1784 if (p.toUpper().startsWith (m.toUpper())) 1785 sDetails = p; 1777 QString m = aDevice.GetManufacturer().trimmed(); 1778 QString p = aDevice.GetProduct().trimmed(); 1779 1780 if (m.isEmpty() && p.isEmpty()) 1781 { 1782 sDetails = 1783 tr ("Unknown device %1:%2", "USB device details") 1784 .arg (QString().sprintf ("%04hX", aDevice.GetVendorId())) 1785 .arg (QString().sprintf ("%04hX", aDevice.GetProductId())); 1786 } 1786 1787 else 1787 sDetails = m + " " + p; 1788 } 1789 ushort r = aDevice.GetRevision(); 1790 if (r != 0) 1791 sDetails += QString().sprintf (" [%04hX]", r); 1788 { 1789 if (p.toUpper().startsWith (m.toUpper())) 1790 sDetails = p; 1791 else 1792 sDetails = m + " " + p; 1793 } 1794 ushort r = aDevice.GetRevision(); 1795 if (r != 0) 1796 sDetails += QString().sprintf (" [%04hX]", r); 1797 } 1792 1798 1793 1799 return sDetails.trimmed();
Note:
See TracChangeset
for help on using the changeset viewer.