Changeset 80720 in vbox
- Timestamp:
- Sep 11, 2019 8:45:49 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r80394 r80720 1189 1189 { 1190 1190 /* Configure 'Screen' connections: */ 1191 connect(m_pVideoMemoryEditor, &UIVideoMemoryEditor::sigValidChanged, this, &UIMachineSettingsDisplay::revalidate); 1192 connect(m_pSliderVideoScreenCount, SIGNAL(valueChanged(int)), this, SLOT(sltHandleGuestScreenCountSliderChange())); 1193 connect(m_pEditorVideoScreenCount, SIGNAL(valueChanged(int)), this, SLOT(sltHandleGuestScreenCountEditorChange())); 1191 connect(m_pVideoMemoryEditor, &UIVideoMemoryEditor::sigValidChanged, 1192 this, &UIMachineSettingsDisplay::revalidate); 1193 connect(m_pSliderVideoScreenCount, &QIAdvancedSlider::valueChanged, 1194 this, &UIMachineSettingsDisplay::sltHandleGuestScreenCountSliderChange); 1195 connect(m_pEditorVideoScreenCount, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), 1196 this, &UIMachineSettingsDisplay::sltHandleGuestScreenCountEditorChange); 1194 1197 connect(m_pGraphicsControllerEditor, &UIGraphicsControllerEditor::sigValueChanged, 1195 1198 this, &UIMachineSettingsDisplay::sltHandleGraphicsControllerComboChange); … … 1204 1207 1205 1208 /* Configure 'Remote Display' connections: */ 1206 connect(m_pCheckboxRemoteDisplay, SIGNAL(toggled(bool)), this, SLOT(revalidate()));1207 connect(m_pEditorRemoteDisplayPort, SIGNAL(textChanged(const QString &)), this, SLOT(revalidate()));1208 connect(m_pEditorRemoteDisplayTimeout, SIGNAL(textChanged(const QString &)), this, SLOT(revalidate()));1209 connect(m_pCheckboxRemoteDisplay, &QCheckBox::toggled, this, &UIMachineSettingsDisplay::revalidate); 1210 connect(m_pEditorRemoteDisplayPort, &QLineEdit::textChanged, this, &UIMachineSettingsDisplay::revalidate); 1211 connect(m_pEditorRemoteDisplayTimeout, &QLineEdit::textChanged, this, &UIMachineSettingsDisplay::revalidate); 1209 1212 1210 1213 /* Configure 'Recording' connections: */ 1211 connect(m_pCheckboxVideoCapture, SIGNAL(toggled(bool)), this, SLOT(sltHandleRecordingCheckboxToggle())); 1212 connect(m_pComboVideoCaptureSize, SIGNAL(currentIndexChanged(int)), this, SLOT(sltHandleRecordingVideoFrameSizeComboboxChange())); 1213 connect(m_pEditorVideoCaptureWidth, SIGNAL(valueChanged(int)), this, SLOT(sltHandleRecordingVideoFrameWidthEditorChange())); 1214 connect(m_pEditorVideoCaptureHeight, SIGNAL(valueChanged(int)), this, SLOT(sltHandleRecordingVideoFrameHeightEditorChange())); 1215 connect(m_pSliderVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleRecordingVideoFrameRateSliderChange())); 1216 connect(m_pEditorVideoCaptureFrameRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleRecordingVideoFrameRateEditorChange())); 1217 connect(m_pSliderVideoCaptureQuality, SIGNAL(valueChanged(int)), this, SLOT(sltHandleRecordingVideoQualitySliderChange())); 1218 connect(m_pEditorVideoCaptureBitRate, SIGNAL(valueChanged(int)), this, SLOT(sltHandleRecordingVideoBitRateEditorChange())); 1214 connect(m_pCheckboxVideoCapture, &QCheckBox::toggled, 1215 this, &UIMachineSettingsDisplay::sltHandleRecordingCheckboxToggle); 1216 connect(m_pComboVideoCaptureSize, static_cast<void(QComboBox::*)(int)>(&QComboBox:: currentIndexChanged), 1217 this, &UIMachineSettingsDisplay::sltHandleRecordingVideoFrameSizeComboboxChange); 1218 connect(m_pEditorVideoCaptureWidth, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), 1219 this, &UIMachineSettingsDisplay::sltHandleRecordingVideoFrameWidthEditorChange); 1220 connect(m_pEditorVideoCaptureHeight, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), 1221 this, &UIMachineSettingsDisplay::sltHandleRecordingVideoFrameHeightEditorChange); 1222 connect(m_pSliderVideoCaptureFrameRate, &QIAdvancedSlider::valueChanged, 1223 this, &UIMachineSettingsDisplay::sltHandleRecordingVideoFrameRateSliderChange); 1224 connect(m_pEditorVideoCaptureFrameRate, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), 1225 this, &UIMachineSettingsDisplay::sltHandleRecordingVideoFrameRateEditorChange); 1226 connect(m_pSliderVideoCaptureQuality, &QIAdvancedSlider::valueChanged, 1227 this, &UIMachineSettingsDisplay::sltHandleRecordingVideoQualitySliderChange); 1228 connect(m_pEditorVideoCaptureBitRate, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), 1229 this, &UIMachineSettingsDisplay::sltHandleRecordingVideoBitRateEditorChange); 1219 1230 1220 1231 connect(m_pComboBoxCaptureMode, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp
r76606 r80720 49 49 { 50 50 /* Configure button-box: */ 51 connect(m_pButtonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()), this, SLOT(accept())); 52 connect(m_pButtonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(reject())); 51 connect(m_pButtonBox->button(QDialogButtonBox::Ok), &QPushButton::clicked, 52 this, &UIMachineSettingsPortForwardingDlg::accept); 53 connect(m_pButtonBox->button(QDialogButtonBox::Cancel), &QPushButton::clicked, 54 this, &UIMachineSettingsPortForwardingDlg::reject); 53 55 } 54 56 /* Add widgets into layout: */ … … 93 95 setWindowTitle(tr("Port Forwarding Rules")); 94 96 } 95 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r79365 r80720 161 161 VBoxUSBMenu(QWidget *) 162 162 { 163 connect(this, SIGNAL(aboutToShow()), this, SLOT(processAboutToShow()));163 connect(this, &VBoxUSBMenu::aboutToShow, this, &VBoxUSBMenu::processAboutToShow); 164 164 } 165 165 … … 910 910 { 911 911 /* Configure validation connections: */ 912 connect(mGbUSB, SIGNAL(stateChanged(int)), this, SLOT(revalidate()));913 connect(mRbUSB1, SIGNAL(toggled(bool)), this, SLOT(revalidate()));914 connect(mRbUSB2, SIGNAL(toggled(bool)), this, SLOT(revalidate()));915 connect(mRbUSB3, SIGNAL(toggled(bool)), this, SLOT(revalidate()));912 connect(mGbUSB, &QCheckBox::stateChanged, this, &UIMachineSettingsUSB::revalidate); 913 connect(mRbUSB1, &QRadioButton::toggled, this, &UIMachineSettingsUSB::revalidate); 914 connect(mRbUSB2, &QRadioButton::toggled, this, &UIMachineSettingsUSB::revalidate); 915 connect(mRbUSB3, &QRadioButton::toggled, this, &UIMachineSettingsUSB::revalidate); 916 916 917 917 /* Configure widget connections: */ 918 connect(mGbUSB, SIGNAL(toggled(bool)),919 this, SLOT(sltHandleUsbAdapterToggle(bool)));920 connect(mTwFilters, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)),921 this, SLOT(sltHandleCurrentItemChange(QTreeWidgetItem*)));922 connect(mTwFilters, SIGNAL(customContextMenuRequested(const QPoint &)),923 this, SLOT(sltHandleContextMenuRequest(const QPoint &)));924 connect(mTwFilters, SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)),925 this, SLOT(sltEditFilter()));926 connect(mTwFilters, SIGNAL(itemChanged(QTreeWidgetItem *, int)),927 this, SLOT(sltHandleActivityStateChange(QTreeWidgetItem *)));918 connect(mGbUSB, &QCheckBox::toggled, 919 this, &UIMachineSettingsUSB::sltHandleUsbAdapterToggle); 920 connect(mTwFilters, &QITreeWidget::currentItemChanged, 921 this, &UIMachineSettingsUSB::sltHandleCurrentItemChange); 922 connect(mTwFilters, &QITreeWidget::customContextMenuRequested, 923 this, &UIMachineSettingsUSB::sltHandleContextMenuRequest); 924 connect(mTwFilters, &QITreeWidget::itemDoubleClicked, 925 this, &UIMachineSettingsUSB::sltEditFilter); 926 connect(mTwFilters, &QITreeWidget::itemChanged, 927 this, &UIMachineSettingsUSB::sltHandleActivityStateChange); 928 928 929 929 /* Configure USB device menu connections: */ 930 connect(m_pMenuUSBDevices, SIGNAL(triggered(QAction*)),931 this, SLOT(sltAddFilterConfirmed(QAction *)));930 connect(m_pMenuUSBDevices, &VBoxUSBMenu::triggered, 931 this, &UIMachineSettingsUSB::sltAddFilterConfirmed); 932 932 } 933 933
Note:
See TracChangeset
for help on using the changeset viewer.