VirtualBox

Changeset 91554 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 5, 2021 7:38:13 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10100. Some variable renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp

    r91545 r91554  
    257257        /** Holds the attachment type label instance. */
    258258        QLabel                    *m_pLabelAttachmentType;
    259         /** Holds the adapter name label instance. */
    260         QLabel                    *m_pLabelAdapterName;
     259        /** Holds the network name label instance. */
     260        QLabel                    *m_pLabelNetworkName;
    261261        /** Holds the attachment type editor instance. */
    262262        UINetworkAttachmentEditor *m_pEditorAttachmentType;
     
    303303    , m_pWidgetAdvancedSettings(0)
    304304    , m_pLabelAttachmentType(0)
    305     , m_pLabelAdapterName(0)
     305    , m_pLabelNetworkName(0)
    306306    , m_pEditorAttachmentType(0)
    307307    , m_pButtonAdvanced(0)
     
    597597    m_pLabelAttachmentType->setEnabled(m_pParent->isMachineInValidMode());
    598598    m_pEditorAttachmentType->setEnabled(m_pParent->isMachineInValidMode());
    599     m_pLabelAdapterName->setEnabled(m_pParent->isMachineInValidMode() &&
     599    m_pLabelNetworkName->setEnabled(m_pParent->isMachineInValidMode() &&
    600600                                    attachmentType() != KNetworkAttachmentType_Null &&
    601601                                    attachmentType() != KNetworkAttachmentType_NAT);
     
    662662    m_pEditorAttachmentType->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Selects how this virtual adapter "
    663663                                                                  "is attached to the real network of the Host OS."));
    664     m_pLabelAdapterName->setText(QApplication::translate("UIMachineSettingsNetwork", "&Name:"));
    665     iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelAdapterName->minimumSizeHint().width());
     664    m_pLabelNetworkName->setText(QApplication::translate("UIMachineSettingsNetwork", "&Name:"));
     665    iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelNetworkName->minimumSizeHint().width());
    666666    m_pButtonAdvanced->setText(QApplication::translate("UIMachineSettingsNetwork", "A&dvanced"));
    667667    m_pButtonAdvanced->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Shows additional network adapter options."));
     
    720720{
    721721    /* Update alternative-name combo-box availability: */
    722     m_pLabelAdapterName->setEnabled(attachmentType() != KNetworkAttachmentType_Null &&
     722    m_pLabelNetworkName->setEnabled(attachmentType() != KNetworkAttachmentType_Null &&
    723723                                    attachmentType() != KNetworkAttachmentType_NAT);
    724724    /* Update promiscuous-mode combo-box availability: */
     
    835835                }
    836836                /* Prepare adapter name label: */
    837                 m_pLabelAdapterName = new QLabel(m_pWidgetAdapterSettings);
    838                 if (m_pLabelAdapterName)
     837                m_pLabelNetworkName = new QLabel(m_pWidgetAdapterSettings);
     838                if (m_pLabelNetworkName)
    839839                {
    840                     m_pLabelAdapterName->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
    841                     m_pLayoutAdapterSettings->addWidget(m_pLabelAdapterName, 1, 0);
     840                    m_pLabelNetworkName->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
     841                    m_pLayoutAdapterSettings->addWidget(m_pLabelNetworkName, 1, 0);
    842842                }
    843843                /* Prepare attachment type editor: */
     
    847847                    if (m_pLabelAttachmentType)
    848848                        m_pLabelAttachmentType->setBuddy(m_pEditorAttachmentType->focusProxy1());
    849                     if (m_pLabelAdapterName)
    850                         m_pLabelAdapterName->setBuddy(m_pEditorAttachmentType->focusProxy2());
     849                    if (m_pLabelNetworkName)
     850                        m_pLabelNetworkName->setBuddy(m_pEditorAttachmentType->focusProxy2());
    851851
    852852                    m_pLayoutAdapterSettings->addWidget(m_pEditorAttachmentType, 0, 1, 2, 3);
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