VirtualBox

Changeset 7167 in vbox


Ignore:
Timestamp:
Feb 27, 2008 11:53:10 AM (17 years ago)
Author:
vboxsync
Message:

Adapter type added into Details report, like:
Adapter <X> <Type> (<Attached_to>)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r7012 r7167  
    15801580                {
    15811581                    CEnums::NetworkAttachmentType type = adapter.GetAttachmentType();
    1582                     QString attType;
     1582                    QString attType = toString (adapter.GetAdapterType())
     1583                                      .replace (QRegExp ("\\s\\(.+\\)"), " (%1)");
    15831584                    /* don't use the adapter type string for types that have
    15841585                     * an additional symbolic network/interface name field, use
    15851586                     * this name instead */
    15861587                    if (type == CEnums::HostInterfaceNetworkAttachment)
    1587                         attType = adapter.GetHostInterface();
     1588                        attType = attType.arg (adapter.GetHostInterface());
    15881589                    else if (type == CEnums::InternalNetworkAttachment)
    1589                         attType = adapter.GetInternalNetwork();
     1590                        attType = attType.arg (adapter.GetInternalNetwork());
    15901591                    else
    1591                         attType = vboxGlobal().toString (type);
     1592                        attType = attType.arg (vboxGlobal().toString (type));
    15921593
    15931594                    item += QString (sSectionItemTpl)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette