Changeset 91554 in vbox for trunk/src/VBox
- Timestamp:
- Oct 5, 2021 7:38:13 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r91545 r91554 257 257 /** Holds the attachment type label instance. */ 258 258 QLabel *m_pLabelAttachmentType; 259 /** Holds the adaptername label instance. */260 QLabel *m_pLabel AdapterName;259 /** Holds the network name label instance. */ 260 QLabel *m_pLabelNetworkName; 261 261 /** Holds the attachment type editor instance. */ 262 262 UINetworkAttachmentEditor *m_pEditorAttachmentType; … … 303 303 , m_pWidgetAdvancedSettings(0) 304 304 , m_pLabelAttachmentType(0) 305 , m_pLabel AdapterName(0)305 , m_pLabelNetworkName(0) 306 306 , m_pEditorAttachmentType(0) 307 307 , m_pButtonAdvanced(0) … … 597 597 m_pLabelAttachmentType->setEnabled(m_pParent->isMachineInValidMode()); 598 598 m_pEditorAttachmentType->setEnabled(m_pParent->isMachineInValidMode()); 599 m_pLabel AdapterName->setEnabled(m_pParent->isMachineInValidMode() &&599 m_pLabelNetworkName->setEnabled(m_pParent->isMachineInValidMode() && 600 600 attachmentType() != KNetworkAttachmentType_Null && 601 601 attachmentType() != KNetworkAttachmentType_NAT); … … 662 662 m_pEditorAttachmentType->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Selects how this virtual adapter " 663 663 "is attached to the real network of the Host OS.")); 664 m_pLabel AdapterName->setText(QApplication::translate("UIMachineSettingsNetwork", "&Name:"));665 iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabel AdapterName->minimumSizeHint().width());664 m_pLabelNetworkName->setText(QApplication::translate("UIMachineSettingsNetwork", "&Name:")); 665 iFirstColumnWidth = qMax(iFirstColumnWidth, m_pLabelNetworkName->minimumSizeHint().width()); 666 666 m_pButtonAdvanced->setText(QApplication::translate("UIMachineSettingsNetwork", "A&dvanced")); 667 667 m_pButtonAdvanced->setWhatsThis(QApplication::translate("UIMachineSettingsNetwork", "Shows additional network adapter options.")); … … 720 720 { 721 721 /* Update alternative-name combo-box availability: */ 722 m_pLabel AdapterName->setEnabled(attachmentType() != KNetworkAttachmentType_Null &&722 m_pLabelNetworkName->setEnabled(attachmentType() != KNetworkAttachmentType_Null && 723 723 attachmentType() != KNetworkAttachmentType_NAT); 724 724 /* Update promiscuous-mode combo-box availability: */ … … 835 835 } 836 836 /* Prepare adapter name label: */ 837 m_pLabel AdapterName = new QLabel(m_pWidgetAdapterSettings);838 if (m_pLabel AdapterName)837 m_pLabelNetworkName = new QLabel(m_pWidgetAdapterSettings); 838 if (m_pLabelNetworkName) 839 839 { 840 m_pLabel AdapterName->setAlignment(Qt::AlignRight | Qt::AlignVCenter);841 m_pLayoutAdapterSettings->addWidget(m_pLabel AdapterName, 1, 0);840 m_pLabelNetworkName->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 841 m_pLayoutAdapterSettings->addWidget(m_pLabelNetworkName, 1, 0); 842 842 } 843 843 /* Prepare attachment type editor: */ … … 847 847 if (m_pLabelAttachmentType) 848 848 m_pLabelAttachmentType->setBuddy(m_pEditorAttachmentType->focusProxy1()); 849 if (m_pLabel AdapterName)850 m_pLabel AdapterName->setBuddy(m_pEditorAttachmentType->focusProxy2());849 if (m_pLabelNetworkName) 850 m_pLabelNetworkName->setBuddy(m_pEditorAttachmentType->focusProxy2()); 851 851 852 852 m_pLayoutAdapterSettings->addWidget(m_pEditorAttachmentType, 0, 1, 2, 3);
Note:
See TracChangeset
for help on using the changeset viewer.