Changeset 66723 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 28, 2017 2:56:19 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115125
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsDialog.cpp
r66697 r66723 238 238 { 239 239 /* Configure check-box: */ 240 connect(m_pCheckBoxDHCP, SIGNAL(stateChanged(int)), this, SLOT(sltDhcpServerStatusChanged())); 240 connect(m_pCheckBoxDHCP, &QCheckBox::stateChanged, 241 this, &UIHostNetworkDetailsDialog::sltDhcpServerStatusChanged); 241 242 /* Add into layout: */ 242 243 pLayoutDHCPServer->addWidget(m_pCheckBoxDHCP, 0, 0, 1, 3); … … 347 348 /* Configure button-box: */ 348 349 pButtonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); 349 connect(pButtonBox, SIGNAL(accepted()), this, SLOT(accept())); 350 connect(pButtonBox, SIGNAL(rejected()), this, SLOT(reject())); 350 connect(pButtonBox, &QIDialogButtonBox::accepted, 351 this, &UIHostNetworkDetailsDialog::accept); 352 connect(pButtonBox, &QIDialogButtonBox::rejected, 353 this, &UIHostNetworkDetailsDialog::reject); 351 354 /* Add button-box into layout: */ 352 355 layout()->addWidget(pButtonBox); -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkDetailsDialog.h
r66697 r66723 214 214 UIDataHostNetwork &m_data; 215 215 /** Holds the tab-widget. */ 216 QITabWidget *m_pTabWidget;216 QITabWidget *m_pTabWidget; 217 217 /** @} */ 218 218 … … 220 220 * @{ */ 221 221 /** Holds the IPv4 address label. */ 222 QLabel 222 QLabel *m_pLabelIPv4; 223 223 /** Holds the IPv4 address editor. */ 224 QILineEdit 224 QILineEdit *m_pEditorIPv4; 225 225 /** Holds the IPv4 network mask label. */ 226 QLabel 226 QLabel *m_pLabelNMv4; 227 227 /** Holds the IPv4 network mask editor. */ 228 QILineEdit 228 QILineEdit *m_pEditorNMv4; 229 229 /** Holds the IPv6 address label. */ 230 QLabel 230 QLabel *m_pLabelIPv6; 231 231 /** Holds the IPv6 address editor. */ 232 QILineEdit 232 QILineEdit *m_pEditorIPv6; 233 233 /** Holds the IPv6 network mask label. */ 234 QLabel 234 QLabel *m_pLabelNMv6; 235 235 /** Holds the IPv6 network mask editor. */ 236 QILineEdit 236 QILineEdit *m_pEditorNMv6; 237 237 /** @} */ 238 238 … … 240 240 * @{ */ 241 241 /** Holds the DHCP server status chack-box. */ 242 QCheckBox 242 QCheckBox *m_pCheckBoxDHCP; 243 243 /** Holds the DHCP address label. */ 244 QLabel 244 QLabel *m_pLabelDHCPAddress; 245 245 /** Holds the DHCP address editor. */ 246 QILineEdit 246 QILineEdit *m_pEditorDHCPAddress; 247 247 /** Holds the DHCP network mask label. */ 248 QLabel 248 QLabel *m_pLabelDHCPMask; 249 249 /** Holds the DHCP network mask editor. */ 250 QILineEdit 250 QILineEdit *m_pEditorDHCPMask; 251 251 /** Holds the DHCP lower address label. */ 252 QLabel 252 QLabel *m_pLabelDHCPLowerAddress; 253 253 /** Holds the DHCP lower address editor. */ 254 QILineEdit 254 QILineEdit *m_pEditorDHCPLowerAddress; 255 255 /** Holds the DHCP upper address label. */ 256 QLabel 256 QLabel *m_pLabelDHCPUpperAddress; 257 257 /** Holds the DHCP upper address editor. */ 258 QILineEdit 258 QILineEdit *m_pEditorDHCPUpperAddress; 259 259 /** @} */ 260 260 }; -
trunk/src/VBox/Frontends/VirtualBox/src/hostnetwork/UIHostNetworkManager.cpp
r66722 r66723 700 700 ":/add_host_iface_disabled_22px.png", 701 701 ":/add_host_iface_disabled_16px.png")); 702 connect(m_pActionAdd, SIGNAL(triggered()), this, SLOT(sltAddHostNetwork()));702 connect(m_pActionAdd, &QAction::triggered, this, &UIHostNetworkManager::sltAddHostNetwork); 703 703 } 704 704 … … 713 713 ":/remove_host_iface_disabled_22px.png", 714 714 ":/remove_host_iface_disabled_16px.png")); 715 connect(m_pActionRemove, SIGNAL(triggered()), this, SLOT(sltRemoveHostNetwork()));715 connect(m_pActionRemove, &QAction::triggered, this, &UIHostNetworkManager::sltRemoveHostNetwork); 716 716 } 717 717 … … 726 726 ":/edit_host_iface_disabled_22px.png", 727 727 ":/edit_host_iface_disabled_16px.png")); 728 connect(m_pActionEdit, SIGNAL(triggered()), this, SLOT(sltEditHostNetwork()));728 connect(m_pActionEdit, &QAction::triggered, this, &UIHostNetworkManager::sltEditHostNetwork); 729 729 } 730 730 … … 824 824 m_pTreeWidget->setSortingEnabled(true); 825 825 m_pTreeWidget->sortByColumn(Column_Name, Qt::AscendingOrder); 826 connect(m_pTreeWidget, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),827 this, SLOT(sltHandleCurrentItemChange()));828 connect(m_pTreeWidget, SIGNAL(itemDoubleClicked(QTreeWidgetItem*, int)),829 this, SLOT(sltEditHostNetwork()));830 connect(m_pTreeWidget, SIGNAL(customContextMenuRequested(const QPoint &)),831 this, SLOT(sltHandleContextMenuRequest(const QPoint &)));832 connect(m_pTreeWidget, SIGNAL(itemChanged(QTreeWidgetItem *, int)),833 this, SLOT(sltHandleItemChange(QTreeWidgetItem *)));826 connect(m_pTreeWidget, &QITreeWidget::currentItemChanged, 827 this, &UIHostNetworkManager::sltHandleCurrentItemChange); 828 connect(m_pTreeWidget, &QITreeWidget::itemDoubleClicked, 829 this, &UIHostNetworkManager::sltEditHostNetwork); 830 connect(m_pTreeWidget, &QITreeWidget::customContextMenuRequested, 831 this, &UIHostNetworkManager::sltHandleContextMenuRequest); 832 connect(m_pTreeWidget, &QITreeWidget::itemChanged, 833 this, &UIHostNetworkManager::sltHandleItemChange); 834 834 /* Add tree-widget into layout: */ 835 835 QVBoxLayout *pMainLayout = qobject_cast<QVBoxLayout*>(centralWidget()->layout()); … … 847 847 m_pButtonBox->setStandardButtons(QDialogButtonBox::Help | QDialogButtonBox::Close); 848 848 m_pButtonBox->button(QDialogButtonBox::Close)->setShortcut(Qt::Key_Escape); 849 connect(m_pButtonBox, SIGNAL(helpRequested()), &msgCenter(), SLOT(sltShowHelpHelpDialog()));850 connect(m_pButtonBox, SIGNAL(rejected()), this, SLOT(close()));849 connect(m_pButtonBox, &QIDialogButtonBox::helpRequested, &msgCenter(), &UIMessageCenter::sltShowHelpHelpDialog); 850 connect(m_pButtonBox, &QIDialogButtonBox::rejected, this, &UIHostNetworkManager::close); 851 851 /* Add button-box into layout: */ 852 852 QVBoxLayout *pMainLayout = qobject_cast<QVBoxLayout*>(centralWidget()->layout());
Note:
See TracChangeset
for help on using the changeset viewer.