VirtualBox

Changeset 80720 in vbox


Ignore:
Timestamp:
Sep 11, 2019 8:45:49 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8938. Converting connection syntaxes under settings. part 5.

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  
    11891189{
    11901190    /* 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);
    11941197    connect(m_pGraphicsControllerEditor, &UIGraphicsControllerEditor::sigValueChanged,
    11951198            this, &UIMachineSettingsDisplay::sltHandleGraphicsControllerComboChange);
     
    12041207
    12051208    /* 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);
    12091212
    12101213    /* 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);
    12191230
    12201231    connect(m_pComboBoxCaptureMode, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsPortForwardingDlg.cpp

    r76606 r80720  
    4949        {
    5050            /* 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);
    5355        }
    5456        /* Add widgets into layout: */
     
    9395    setWindowTitle(tr("Port Forwarding Rules"));
    9496}
    95 
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r79365 r80720  
    161161    VBoxUSBMenu(QWidget *)
    162162    {
    163         connect(this, SIGNAL(aboutToShow()), this, SLOT(processAboutToShow()));
     163        connect(this, &VBoxUSBMenu::aboutToShow, this, &VBoxUSBMenu::processAboutToShow);
    164164    }
    165165
     
    910910{
    911911    /* 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);
    916916
    917917    /* 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);
    928928
    929929    /* 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);
    932932}
    933933
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette