VirtualBox

Changeset 80699 in vbox


Ignore:
Timestamp:
Sep 10, 2019 12:36:00 PM (5 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp

    r79365 r80699  
    629629{
    630630    /* Configure 'Basic' connections: */
    631     connect(m_pNameAndSystemEditor, SIGNAL(sigOsTypeChanged()),
    632             this, SLOT(revalidate()));
    633     connect(m_pNameAndSystemEditor, SIGNAL(sigNameChanged(const QString &)),
    634             this, SLOT(revalidate()));
     631    connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged,
     632            this, &UIMachineSettingsGeneral::revalidate);
     633    connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged,
     634            this, &UIMachineSettingsGeneral::revalidate);
    635635
    636636    /* Configure 'Encryption' connections: */
    637     connect(m_pCheckBoxEncryption, SIGNAL(toggled(bool)),
    638             this, SLOT(revalidate()));
    639     connect(m_pComboCipher, SIGNAL(currentIndexChanged(int)),
    640             this, SLOT(sltMarkEncryptionCipherChanged()));
    641     connect(m_pComboCipher, SIGNAL(currentIndexChanged(int)),
    642             this, SLOT(revalidate()));
    643     connect(m_pEditorEncryptionPassword, SIGNAL(textEdited(const QString&)),
    644             this, SLOT(sltMarkEncryptionPasswordChanged()));
    645     connect(m_pEditorEncryptionPassword, SIGNAL(textEdited(const QString&)),
    646             this, SLOT(revalidate()));
    647     connect(m_pEditorEncryptionPasswordConfirm, SIGNAL(textEdited(const QString&)),
    648             this, SLOT(sltMarkEncryptionPasswordChanged()));
    649     connect(m_pEditorEncryptionPasswordConfirm, SIGNAL(textEdited(const QString&)),
    650             this, SLOT(revalidate()));
     637    connect(m_pCheckBoxEncryption, &QCheckBox::toggled,
     638            this, &UIMachineSettingsGeneral::revalidate);
     639    connect(m_pComboCipher, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
     640            this, &UIMachineSettingsGeneral::sltMarkEncryptionCipherChanged);
     641    connect(m_pComboCipher, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
     642            this, &UIMachineSettingsGeneral::revalidate);
     643    connect(m_pEditorEncryptionPassword, &QLineEdit::textEdited,
     644            this, &UIMachineSettingsGeneral::sltMarkEncryptionPasswordChanged);
     645    connect(m_pEditorEncryptionPassword, &QLineEdit::textEdited,
     646            this, &UIMachineSettingsGeneral::revalidate);
     647    connect(m_pEditorEncryptionPasswordConfirm, &QLineEdit::textEdited,
     648            this, &UIMachineSettingsGeneral::sltMarkEncryptionPasswordChanged);
     649    connect(m_pEditorEncryptionPasswordConfirm, &QLineEdit::textEdited,
     650            this, &UIMachineSettingsGeneral::revalidate);
    651651}
    652652
     
    916916                    {
    917917                        pDlg = new UIProgress(comProgress);
    918                         connect(pDlg, SIGNAL(sigProgressChange(ulong, QString, ulong, ulong)),
    919                                 this, SIGNAL(sigOperationProgressChange(ulong, QString, ulong, ulong)),
     918                        connect(pDlg, &UIProgress::sigProgressChange,
     919                                this, &UIMachineSettingsGeneral::sigOperationProgressChange,
    920920                                Qt::QueuedConnection);
    921                         connect(pDlg, SIGNAL(sigProgressError(QString)),
    922                                 this, SIGNAL(sigOperationProgressError(QString)),
     921                        connect(pDlg, &UIProgress::sigProgressError,
     922                            this, &UIMachineSettingsGeneral::sigOperationProgressError,
    923923                                Qt::BlockingQueuedConnection);
    924924                        pDlg->run(350);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r79999 r80699  
    846846{
    847847    /* Configure 'Motherboard' connections: */
    848     connect(m_pComboChipsetType, SIGNAL(currentIndexChanged(int)), this, SLOT(revalidate()));
    849     connect(m_pComboPointingHIDType, SIGNAL(currentIndexChanged(int)), this, SLOT(revalidate()));
     848    connect(m_pComboChipsetType, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
     849        this, &UIMachineSettingsSystem::revalidate);
     850    connect(m_pComboPointingHIDType, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
     851            this, &UIMachineSettingsSystem::revalidate);
    850852    connect(m_pBaseMemoryEditor, &UIBaseMemoryEditor::sigValidChanged, this, &UIMachineSettingsSystem::revalidate);
    851     connect(m_pCheckBoxApic, SIGNAL(stateChanged(int)), this, SLOT(revalidate()));
     853    connect(m_pCheckBoxApic, &QCheckBox::stateChanged, this, &UIMachineSettingsSystem::revalidate);
    852854
    853855    /* Configure 'Processor' connections: */
    854     connect(m_pSliderCPUCount, SIGNAL(valueChanged(int)), this, SLOT(sltHandleCPUCountSliderChange()));
    855     connect(m_pEditorCPUCount, SIGNAL(valueChanged(int)), this, SLOT(sltHandleCPUCountEditorChange()));
    856     connect(m_pSliderCPUExecCap, SIGNAL(valueChanged(int)), this, SLOT(sltHandleCPUExecCapSliderChange()));
    857     connect(m_pEditorCPUExecCap, SIGNAL(valueChanged(int)), this, SLOT(sltHandleCPUExecCapEditorChange()));
    858     connect(m_pCheckBoxNestedVirtualization, &QCheckBox::stateChanged,
    859             this, &UIMachineSettingsSystem::revalidate);
     856    connect(m_pSliderCPUCount, &QIAdvancedSlider::valueChanged, this, &UIMachineSettingsSystem::sltHandleCPUCountSliderChange);
     857    connect(m_pEditorCPUCount, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
     858            this, &UIMachineSettingsSystem::sltHandleCPUCountEditorChange);
     859    connect(m_pSliderCPUExecCap, &QIAdvancedSlider::valueChanged, this, &UIMachineSettingsSystem::sltHandleCPUExecCapSliderChange);
     860    connect(m_pEditorCPUExecCap, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
     861            this, &UIMachineSettingsSystem::sltHandleCPUExecCapEditorChange);
     862    connect(m_pCheckBoxNestedVirtualization, &QCheckBox::stateChanged, this, &UIMachineSettingsSystem::revalidate);
    860863
    861864    /* Configure 'Acceleration' connections: */
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