- Timestamp:
- Sep 9, 2019 11:46:08 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/global
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsDisplay.cpp
r76606 r80669 191 191 m_pResolutionHeightSpin->setMinimum(iMinHeight); 192 192 m_pResolutionHeightSpin->setMaximum(iMaxSize); 193 connect(m_pMaxResolutionCombo, SIGNAL(currentIndexChanged(int)),194 this, SLOT(sltHandleMaximumGuestScreenSizePolicyChange()));193 connect(m_pMaxResolutionCombo, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated), 194 this, &UIGlobalSettingsDisplay::sltHandleMaximumGuestScreenSizePolicyChange); 195 195 } 196 196 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r79365 r80669 426 426 m_pPackagesTree->header()->setSectionResizeMode(2, QHeaderView::ResizeToContents); 427 427 m_pPackagesTree->setContextMenuPolicy(Qt::CustomContextMenu); 428 connect(m_pPackagesTree, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),429 this, SLOT(sltHandleCurrentItemChange(QTreeWidgetItem *)));430 connect(m_pPackagesTree, SIGNAL(customContextMenuRequested(const QPoint &)),431 this, SLOT(sltHandleContextMenuRequest(const QPoint &)));428 connect(m_pPackagesTree, &QITreeWidget::currentItemChanged, 429 this, &UIGlobalSettingsExtension::sltHandleCurrentItemChange); 430 connect(m_pPackagesTree, &QITreeWidget::customContextMenuRequested, 431 this, &UIGlobalSettingsExtension::sltHandleContextMenuRequest); 432 432 } 433 433 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsLanguage.cpp
r79365 r80669 347 347 m_pLanguageTree->hideColumn(3); 348 348 m_pLanguageTree->setMinimumHeight(150); 349 connect(m_pLanguageTree, SIGNAL(painted(QTreeWidgetItem *, QPainter *)),350 this, SLOT(sltHandleItemPainting(QTreeWidgetItem *, QPainter *)));351 connect(m_pLanguageTree, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),352 this, SLOT(sltHandleCurrentItemChange(QTreeWidgetItem *)));349 connect(m_pLanguageTree, &QITreeWidget::painted, 350 this, &UIGlobalSettingsLanguage::sltHandleItemPainting); 351 connect(m_pLanguageTree, &QITreeWidget::currentItemChanged, 352 this, &UIGlobalSettingsLanguage::sltHandleCurrentItemChange); 353 353 } 354 354 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r79365 r80669 559 559 { 560 560 /* Configure 'NAT Network' connections: */ 561 connect(m_pTreeNetworkNAT, SIGNAL(currentItemChanged(QTreeWidgetItem *, QTreeWidgetItem *)),562 this, SLOT(sltHandleCurrentItemChangeNATNetwork()));563 connect(m_pTreeNetworkNAT, SIGNAL(customContextMenuRequested(const QPoint &)),564 this, SLOT(sltHandleContextMenuRequestNATNetwork(const QPoint &)));565 connect(m_pTreeNetworkNAT, SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)),566 this, SLOT(sltEditNATNetwork()));567 connect(m_pTreeNetworkNAT, SIGNAL(itemChanged(QTreeWidgetItem *, int)),568 this, SLOT(sltHandleItemChangeNATNetwork(QTreeWidgetItem *)));561 connect(m_pTreeNetworkNAT, &QITreeWidget::currentItemChanged, 562 this, &UIGlobalSettingsNetwork::sltHandleCurrentItemChangeNATNetwork); 563 connect(m_pTreeNetworkNAT, &QITreeWidget::customContextMenuRequested, 564 this, &UIGlobalSettingsNetwork::sltHandleContextMenuRequestNATNetwork); 565 connect(m_pTreeNetworkNAT, &QITreeWidget::itemDoubleClicked, 566 this, &UIGlobalSettingsNetwork::sltEditNATNetwork); 567 connect(m_pTreeNetworkNAT, &QITreeWidget::itemChanged, 568 this, &UIGlobalSettingsNetwork::sltHandleItemChangeNATNetwork); 569 569 } 570 570 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsPortForwardingDlg.cpp
r76606 r80669 56 56 { 57 57 /* Configure button-box: */ 58 connect(m_pButtonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(accept()));59 connect(m_pButtonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject()));58 connect(m_pButtonBox->button(QDialogButtonBox::Ok), &QPushButton::clicked, this, &UIGlobalSettingsPortForwardingDlg::accept); 59 connect(m_pButtonBox->button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &UIGlobalSettingsPortForwardingDlg::reject); 60 60 } 61 61 /* Add widgets into layout: */ … … 109 109 m_pTabWidget->setTabText(1, tr("IPv6")); 110 110 } 111 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp
r79365 r80669 209 209 { 210 210 /* Configure widgets: */ 211 connect(m_pCheckBoxUpdate, SIGNAL(toggled(bool)), this, SLOT(sltHandleUpdateToggle(bool))); 212 connect(m_pComboBoxUpdatePeriod, SIGNAL(activated(int)), this, SLOT(sltHandleUpdatePeriodChange())); 211 connect(m_pCheckBoxUpdate, &QCheckBox::toggled, this, &UIGlobalSettingsUpdate::sltHandleUpdateToggle); 212 connect(m_pComboBoxUpdatePeriod, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated), 213 this, &UIGlobalSettingsUpdate::sltHandleUpdatePeriodChange); 213 214 } 214 215 … … 260 261 return fSuccess; 261 262 } 262
Note:
See TracChangeset
for help on using the changeset viewer.