Changeset 37463 in vbox
- Timestamp:
- Jun 15, 2011 10:02:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp
r37200 r37463 716 716 } 717 717 718 /** 719 * Return a text summary of the properties of a generic network adapter 720 */ 721 QString summarizeGenericProperties(const CNetworkAdapter &adapter) 722 { 723 QVector<QString> names; 724 QVector<QString> props; 725 props = adapter.GetProperties(QString(), names); // all properties, please 726 727 QString result; 728 for (int i = 0; i < names.size(); i++) 729 { 730 result += names[i] + "=" + props[i]; 731 if (i != names.size() - 1) 732 result += ", "; 733 } 734 735 return result; 736 } 737 718 738 void UIDetailsPagePrivate::sltUpdateNetwork() 719 739 { … … 748 768 "details report (network)").arg(adapter.GetHostOnlyInterface())); 749 769 else if (type == KNetworkAttachmentType_Generic) 750 attType = attType.arg(tr("Generic, '%1' ",751 "details report (network)").arg(adapter.GetGenericDriver() ));770 attType = attType.arg(tr("Generic, '%1' { %2 }", 771 "details report (network)").arg(adapter.GetGenericDriver(), summarizeGenericProperties(adapter))); 752 772 else 753 773 attType = attType.arg(vboxGlobal().toString(type));
Note:
See TracChangeset
for help on using the changeset viewer.