Changeset 92811 in vbox for trunk/src/VBox
- Timestamp:
- Dec 8, 2021 1:41:20 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148731
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r92731 r92811 1323 1323 } 1324 1324 1325 bool UIMessageCenter::confirmHost OnlyInterfaceRemoval(const QString &strName, QWidget *pParent /* = 0 */) const1325 bool UIMessageCenter::confirmHostNetworkInterfaceRemoval(const QString &strName, QWidget *pParent /* = 0 */) const 1326 1326 { 1327 1327 return questionBinary(pParent, MessageType_Question, -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r92731 r92811 357 357 * @{ */ 358 358 bool confirmCloudNetworkRemoval(const QString &strName, QWidget *pParent = 0) const; 359 bool confirmHost OnlyInterfaceRemoval(const QString &strName, QWidget *pParent = 0) const;359 bool confirmHostNetworkInterfaceRemoval(const QString &strName, QWidget *pParent = 0) const; 360 360 bool confirmNATNetworkRemoval(const QString &strName, QWidget *pParent = 0) const; 361 361 /** @} */ -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetHostNetwork.cpp
r91142 r92811 458 458 if (m_pLabelIPv4) 459 459 { 460 m_pLabelIPv4->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);460 m_pLabelIPv4->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 461 461 pLayoutInterface->addWidget(m_pLabelIPv4, 2, 1); 462 462 } … … 485 485 if (m_pLabelNMv4) 486 486 { 487 m_pLabelNMv4->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);487 m_pLabelNMv4->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 488 488 pLayoutInterface->addWidget(m_pLabelNMv4, 3, 1); 489 489 } … … 512 512 if (m_pLabelIPv6) 513 513 { 514 m_pLabelIPv6->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);514 m_pLabelIPv6->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 515 515 pLayoutInterface->addWidget(m_pLabelIPv6, 4, 1); 516 516 } … … 539 539 if (m_pLabelNMv6) 540 540 { 541 m_pLabelNMv6->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);541 m_pLabelNMv6->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 542 542 pLayoutInterface->addWidget(m_pLabelNMv6, 5, 1); 543 543 } … … 626 626 if (m_pLabelDHCPAddress) 627 627 { 628 m_pLabelDHCPAddress->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);628 m_pLabelDHCPAddress->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 629 629 pLayoutDHCPServer->addWidget(m_pLabelDHCPAddress, 1, 1); 630 630 } … … 653 653 if (m_pLabelDHCPMask) 654 654 { 655 m_pLabelDHCPMask->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);655 m_pLabelDHCPMask->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 656 656 pLayoutDHCPServer->addWidget(m_pLabelDHCPMask, 2, 1); 657 657 } … … 680 680 if (m_pLabelDHCPLowerAddress) 681 681 { 682 m_pLabelDHCPLowerAddress->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);682 m_pLabelDHCPLowerAddress->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 683 683 pLayoutDHCPServer->addWidget(m_pLabelDHCPLowerAddress, 3, 1); 684 684 } … … 707 707 if (m_pLabelDHCPUpperAddress) 708 708 { 709 m_pLabelDHCPUpperAddress->setAlignment(Qt::AlignRight | Qt::Align Trailing | Qt::AlignVCenter);709 m_pLabelDHCPUpperAddress->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 710 710 pLayoutDHCPServer->addWidget(m_pLabelDHCPUpperAddress, 4, 1); 711 711 } -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UIDetailsWidgetHostNetwork.h
r87306 r92811 92 92 }; 93 93 94 95 94 /** Network Manager: DHCP Server data structure. */ 96 95 struct UIDataDHCPServer … … 133 132 QString m_strUpperAddress; 134 133 }; 135 136 134 137 135 /** Network Manager: Host network data structure. */ -
trunk/src/VBox/Frontends/VirtualBox/src/networkmanager/UINetworkManager.cpp
r92810 r92811 40 40 #ifdef VBOX_WS_MAC 41 41 # include "UIWindowMenuManager.h" 42 #endif /* VBOX_WS_MAC */42 #endif 43 43 #include "UICommon.h" 44 44 … … 374 374 if (m_pToolBar) 375 375 m_pToolBar->updateLayout(); 376 #endif 376 #endif /* VBOX_WS_MAC */ 377 377 378 378 /* Translate tab-widget: */ … … 532 532 533 533 /* Confirm host network removal: */ 534 if (!msgCenter().confirmHost OnlyInterfaceRemoval(strInterfaceName, this))534 if (!msgCenter().confirmHostNetworkInterfaceRemoval(strInterfaceName, this)) 535 535 return; 536 536 … … 1587 1587 layout()->addWidget(m_pToolBar); 1588 1588 } 1589 #else 1589 #else /* !VBOX_WS_MAC */ 1590 1590 /* Add into layout: */ 1591 1591 layout()->addWidget(m_pToolBar); 1592 #endif 1592 #endif /* !VBOX_WS_MAC */ 1593 1593 } 1594 1594 }
Note:
See TracChangeset
for help on using the changeset viewer.