VirtualBox

儲存庫 vbox 的更動 66724


忽略:
時間撮記:
2017-4-28 下午03:16:39 (8 年 以前)
作者:
vboxsync
訊息:

FE/Qt: bugref:8847: Host Network Manager: A bit of macOS adjustments.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsDialog.cpp

    r66723 r66724  
    3838    : QIWithRetranslateUI2<QIDialog>(pParent)
    3939    , m_data(data)
     40    , m_pTabWidget(0)
     41    , m_pLabelIPv4(0), m_pEditorIPv4(0), m_pLabelNMv4(0), m_pEditorNMv4(0)
     42    , m_pLabelIPv6(0), m_pEditorIPv6(0), m_pLabelNMv6(0), m_pEditorNMv6(0)
     43    , m_pCheckBoxDHCP(0) , m_pLabelDHCPAddress(0), m_pEditorDHCPAddress(0), m_pLabelDHCPMask(0), m_pEditorDHCPMask(0)
     44    , m_pLabelDHCPLowerAddress(0), m_pEditorDHCPLowerAddress(0), m_pLabelDHCPUpperAddress(0), m_pEditorDHCPUpperAddress(0)
    4045{
    4146    /* Prepare: */
     
    137142        AssertPtrReturnVoid(pLayoutInterface);
    138143        {
     144#ifdef VBOX_WS_MAC
     145            /* Configure layout: */
     146            pLayoutInterface->setContentsMargins(10, 10, 10, 10);
     147#endif
    139148            /* Create IPv4 address label: */
    140149            m_pLabelIPv4 = new QLabel;
     
    233242        AssertPtrReturnVoid(pLayoutDHCPServer);
    234243        {
     244#ifdef VBOX_WS_MAC
     245            /* Configure layout: */
     246            pLayoutDHCPServer->setContentsMargins(10, 10, 10, 10);
     247#endif
    235248            /* Create DHCP server status check-box: */
    236249            m_pCheckBoxDHCP = new QCheckBox;
     
    241254                        this, &UIHostNetworkDetailsDialog::sltDhcpServerStatusChanged);
    242255                /* Add into layout: */
    243                 pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 3);
     256                pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 2);
    244257            }
    245258            /* Create DHCP address label: */
     
    390403{
    391404    /* Toggle DHCP server fields availability: */
    392     const bool fIsManual = m_pCheckBoxDHCP->isChecked();
    393     m_pLabelDHCPAddress->setEnabled(fIsManual);
    394     m_pLabelDHCPMask->setEnabled(fIsManual);
    395     m_pLabelDHCPLowerAddress->setEnabled(fIsManual);
    396     m_pLabelDHCPUpperAddress->setEnabled(fIsManual);
    397     m_pEditorDHCPAddress->setEnabled(fIsManual);
    398     m_pEditorDHCPMask->setEnabled(fIsManual);
    399     m_pEditorDHCPLowerAddress->setEnabled(fIsManual);
    400     m_pEditorDHCPUpperAddress->setEnabled(fIsManual);
    401     if (fIsManual)
     405    const bool fIsDHCPServerEnabled = m_data.m_dhcpserver.m_fEnabled;
     406    m_pLabelDHCPAddress->setEnabled(fIsDHCPServerEnabled);
     407    m_pLabelDHCPMask->setEnabled(fIsDHCPServerEnabled);
     408    m_pLabelDHCPLowerAddress->setEnabled(fIsDHCPServerEnabled);
     409    m_pLabelDHCPUpperAddress->setEnabled(fIsDHCPServerEnabled);
     410    m_pEditorDHCPAddress->setEnabled(fIsDHCPServerEnabled);
     411    m_pEditorDHCPMask->setEnabled(fIsDHCPServerEnabled);
     412    m_pEditorDHCPLowerAddress->setEnabled(fIsDHCPServerEnabled);
     413    m_pEditorDHCPUpperAddress->setEnabled(fIsDHCPServerEnabled);
     414    if (fIsDHCPServerEnabled)
    402415    {
    403416        /* Load DHCP server fields: */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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