儲存庫 vbox 的更動 66724
- 時間撮記:
- 2017-4-28 下午03:16:39 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsDialog.cpp
r66723 r66724 38 38 : QIWithRetranslateUI2<QIDialog>(pParent) 39 39 , 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) 40 45 { 41 46 /* Prepare: */ … … 137 142 AssertPtrReturnVoid(pLayoutInterface); 138 143 { 144 #ifdef VBOX_WS_MAC 145 /* Configure layout: */ 146 pLayoutInterface->setContentsMargins(10, 10, 10, 10); 147 #endif 139 148 /* Create IPv4 address label: */ 140 149 m_pLabelIPv4 = new QLabel; … … 233 242 AssertPtrReturnVoid(pLayoutDHCPServer); 234 243 { 244 #ifdef VBOX_WS_MAC 245 /* Configure layout: */ 246 pLayoutDHCPServer->setContentsMargins(10, 10, 10, 10); 247 #endif 235 248 /* Create DHCP server status check-box: */ 236 249 m_pCheckBoxDHCP = new QCheckBox; … … 241 254 this, &UIHostNetworkDetailsDialog::sltDhcpServerStatusChanged); 242 255 /* Add into layout: */ 243 pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 3);256 pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 2); 244 257 } 245 258 /* Create DHCP address label: */ … … 390 403 { 391 404 /* Toggle DHCP server fields availability: */ 392 const bool fIs Manual = m_pCheckBoxDHCP->isChecked();393 m_pLabelDHCPAddress->setEnabled(fIs Manual);394 m_pLabelDHCPMask->setEnabled(fIs Manual);395 m_pLabelDHCPLowerAddress->setEnabled(fIs Manual);396 m_pLabelDHCPUpperAddress->setEnabled(fIs Manual);397 m_pEditorDHCPAddress->setEnabled(fIs Manual);398 m_pEditorDHCPMask->setEnabled(fIs Manual);399 m_pEditorDHCPLowerAddress->setEnabled(fIs Manual);400 m_pEditorDHCPUpperAddress->setEnabled(fIs Manual);401 if (fIs Manual)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) 402 415 { 403 416 /* Load DHCP server fields: */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器