VirtualBox

Changeset 70805 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 30, 2018 8:30:14 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8938 Using Qt5 signal-slot connection notation for VBox Qt 'src/wizard' classes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp

    r69690 r70805  
    9898
    9999    /* Setup connections: */
    100     connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(sltCurrentIdChanged(int)));
    101     connect(this, SIGNAL(customButtonClicked(int)), this, SLOT(sltCustomButtonClicked(int)));
     100    connect(this, &UIWizard::currentIdChanged,    this, &UIWizard::sltCurrentIdChanged);
     101    connect(this, &UIWizard::customButtonClicked, this, &UIWizard::sltCustomButtonClicked);
    102102}
    103103
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp

    r69200 r70805  
    9494
    9595    /* Setup connections: */
    96     connect(m_pSourceDiskSelector, SIGNAL(currentIndexChanged(int)), this, SIGNAL(completeChanged()));
    97     connect(m_pSourceDiskOpenButton, SIGNAL(clicked()), this, SLOT(sltHandleOpenSourceDiskClick()));
     96    connect(m_pSourceDiskSelector, static_cast<void(VBoxMediaComboBox::*)(int)>(&VBoxMediaComboBox::currentIndexChanged),
     97            this, &UIWizardCloneVDPageBasic1::completeChanged);
     98    connect(m_pSourceDiskOpenButton, &QIToolButton::clicked,
     99            this, &UIWizardCloneVDPageBasic1::sltHandleOpenSourceDiskClick);
    98100
    99101    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp

    r69200 r70805  
    147147
    148148    /* Setup connections: */
    149     connect(m_pFormatButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SIGNAL(completeChanged()));
     149    connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     150            this, &UIWizardCloneVDPageBasic2::completeChanged);
    150151
    151152    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp

    r69200 r70805  
    121121
    122122    /* Setup connections: */
    123     connect(m_pVariantButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SIGNAL(completeChanged()));
    124     connect(m_pSplitBox, SIGNAL(stateChanged(int)), this, SIGNAL(completeChanged()));
     123    connect(m_pVariantButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     124            this, &UIWizardCloneVDPageBasic3::completeChanged);
     125    connect(m_pSplitBox, &QCheckBox::stateChanged,
     126            this, &UIWizardCloneVDPageBasic3::completeChanged);
    125127
    126128    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp

    r69239 r70805  
    191191
    192192    /* Setup page connections: */
    193     connect(m_pDestinationDiskEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    194     connect(m_pDestinationDiskOpenButton, SIGNAL(clicked()), this, SLOT(sltSelectLocationButtonClicked()));
     193    connect(m_pDestinationDiskEditor, &QLineEdit::textChanged,    this, &UIWizardCloneVDPageBasic4::completeChanged);
     194    connect(m_pDestinationDiskOpenButton, &QIToolButton::clicked, this, &UIWizardCloneVDPageBasic4::sltSelectLocationButtonClicked);
    195195
    196196    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp

    r69726 r70805  
    165165
    166166    /* Setup connections: */
    167     connect(m_pSourceDiskSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(sltHandleSourceDiskChange()));
    168     connect(m_pSourceDiskOpenButton, SIGNAL(clicked()), this, SLOT(sltHandleOpenSourceDiskClick()));
    169     connect(m_pFormatButtonGroup, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(sltMediumFormatChanged()));
    170     connect(m_pVariantButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SIGNAL(completeChanged()));
    171     connect(m_pSplitBox, SIGNAL(stateChanged(int)), this, SIGNAL(completeChanged()));
    172     connect(m_pDestinationDiskEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    173     connect(m_pDestinationDiskOpenButton, SIGNAL(clicked()), this, SLOT(sltSelectLocationButtonClicked()));
     167    connect(m_pSourceDiskSelector, static_cast<void(VBoxMediaComboBox::*)(int)>(&VBoxMediaComboBox::currentIndexChanged),
     168            this, &UIWizardCloneVDPageExpert::sltHandleSourceDiskChange);
     169    connect(m_pSourceDiskOpenButton, &QIToolButton::clicked,
     170            this, &UIWizardCloneVDPageExpert::sltHandleOpenSourceDiskClick);
     171    connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     172            this, &UIWizardCloneVDPageExpert::sltMediumFormatChanged);
     173    connect(m_pVariantButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     174            this, &UIWizardCloneVDPageExpert::completeChanged);
     175    connect(m_pSplitBox, &QCheckBox::stateChanged,
     176            this, &UIWizardCloneVDPageExpert::completeChanged);
     177    connect(m_pDestinationDiskEditor, &QLineEdit::textChanged,
     178            this, &UIWizardCloneVDPageExpert::completeChanged);
     179    connect(m_pDestinationDiskOpenButton, &QIToolButton::clicked,
     180            this, &UIWizardCloneVDPageExpert::sltSelectLocationButtonClicked);
    174181
    175182    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp

    r69500 r70805  
    7272
    7373    /* Setup connections: */
    74     connect(m_pNameEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
     74    connect(m_pNameEditor, &QLineEdit::textChanged, this, &UIWizardCloneVMPageBasic1::completeChanged);
    7575
    7676    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp

    r69500 r70805  
    7171
    7272    /* Setup connections: */
    73     connect(m_pButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SLOT(sltButtonClicked(QAbstractButton *)));
     73    connect(m_pButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton *)>(&QButtonGroup::buttonClicked),
     74            this, &UIWizardCloneVMPageBasic2::sltButtonClicked);
    7475
    7576    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageExpert.cpp

    r69726 r70805  
    101101
    102102    /* Setup connections: */
    103     connect(m_pNameEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    104     connect(m_pButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SLOT(sltButtonClicked(QAbstractButton *)));
     103    connect(m_pNameEditor, &QLineEdit::textChanged,
     104            this, &UIWizardCloneVMPageExpert::completeChanged);
     105    connect(m_pButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     106            this, &UIWizardCloneVMPageExpert::sltButtonClicked);
    105107
    106108    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp

    r69500 r70805  
    131131
    132132    /* Setup connections: */
    133     connect(m_pVMSelector, SIGNAL(itemSelectionChanged()), this, SIGNAL(completeChanged()));
     133    connect(m_pVMSelector, &QListWidget::itemSelectionChanged, this, &UIWizardExportAppPageBasic1::completeChanged);
    134134
    135135    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp

    r69500 r70805  
    9696
    9797    /* Setup connections: */
    98     connect(m_pTypeLocalFilesystem, SIGNAL(clicked()), this, SIGNAL(completeChanged()));
    99     connect(m_pTypeSunCloud, SIGNAL(clicked()), this, SIGNAL(completeChanged()));
    100     connect(m_pTypeSimpleStorageSystem, SIGNAL(clicked()), this, SIGNAL(completeChanged()));
     98    connect(m_pTypeLocalFilesystem, &QRadioButton::clicked,     this, &UIWizardExportAppPageBasic2::completeChanged);
     99    connect(m_pTypeSunCloud, &QRadioButton::clicked,            this, &UIWizardExportAppPageBasic2::completeChanged);
     100    connect(m_pTypeSimpleStorageSystem, &QRadioButton::clicked, this, &UIWizardExportAppPageBasic2::completeChanged);
    101101
    102102    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp

    r68418 r70805  
    312312
    313313    /* Setup connections: */
    314     connect(m_pUsernameEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    315     connect(m_pPasswordEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    316     connect(m_pHostnameEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    317     connect(m_pBucketEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    318     connect(m_pFileSelector, SIGNAL(pathChanged(const QString &)), this, SIGNAL(completeChanged()));
     314    connect(m_pUsernameEditor, &QLineEdit::textChanged,             this, &UIWizardExportAppPageBasic3::completeChanged);
     315    connect(m_pPasswordEditor, &QLineEdit::textChanged,             this, &UIWizardExportAppPageBasic3::completeChanged);
     316    connect(m_pHostnameEditor, &QLineEdit::textChanged,             this, &UIWizardExportAppPageBasic3::completeChanged);
     317    connect(m_pBucketEditor, &QLineEdit::textChanged,               this, &UIWizardExportAppPageBasic3::completeChanged);
     318    connect(m_pFileSelector, &UIEmptyFilePathSelector::pathChanged, this, &UIWizardExportAppPageBasic3::completeChanged);
    319319
    320320    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp

    r69726 r70805  
    171171
    172172    /* Setup connections: */
    173     connect(m_pVMSelector, SIGNAL(itemSelectionChanged()), this, SLOT(sltVMSelectionChangeHandler()));
    174     connect(m_pTypeLocalFilesystem, SIGNAL(clicked()), this, SLOT(sltStorageTypeChangeHandler()));
    175     connect(m_pTypeSunCloud, SIGNAL(clicked()), this, SLOT(sltStorageTypeChangeHandler()));
    176     connect(m_pTypeSimpleStorageSystem, SIGNAL(clicked()), this, SLOT(sltStorageTypeChangeHandler()));
    177     connect(m_pUsernameEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    178     connect(m_pPasswordEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    179     connect(m_pHostnameEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    180     connect(m_pBucketEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    181     connect(m_pFileSelector, SIGNAL(pathChanged(const QString &)), this, SIGNAL(completeChanged()));
     173    connect(m_pVMSelector, &QListWidget::itemSelectionChanged,      this, &UIWizardExportAppPageExpert::sltVMSelectionChangeHandler);
     174    connect(m_pTypeLocalFilesystem, &QRadioButton::clicked,         this, &UIWizardExportAppPageExpert::sltStorageTypeChangeHandler);
     175    connect(m_pTypeSunCloud, &QRadioButton::clicked,                this, &UIWizardExportAppPageExpert::sltStorageTypeChangeHandler);
     176    connect(m_pTypeSimpleStorageSystem, &QRadioButton::clicked,     this, &UIWizardExportAppPageExpert::sltStorageTypeChangeHandler);
     177    connect(m_pUsernameEditor, &QLineEdit::textChanged,             this, &UIWizardExportAppPageExpert::completeChanged);
     178    connect(m_pPasswordEditor, &QLineEdit::textChanged,             this, &UIWizardExportAppPageExpert::completeChanged);
     179    connect(m_pHostnameEditor, &QLineEdit::textChanged,             this, &UIWizardExportAppPageExpert::completeChanged);
     180    connect(m_pBucketEditor, &QLineEdit::textChanged,               this, &UIWizardExportAppPageExpert::completeChanged);
     181    connect(m_pFileSelector, &UIEmptyFilePathSelector::pathChanged, this, &UIWizardExportAppPageExpert::completeChanged);
    182182
    183183    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp

    r69726 r70805  
    9191
    9292    /* Setup connections: */
    93     connect(m_pMediaSelector, SIGNAL(currentIndexChanged(int)), this, SIGNAL(completeChanged()));
    94     connect(m_pSelectMediaButton, SIGNAL(clicked()), this, SLOT(sltOpenMediumWithFileOpenDialog()));
     93    connect(m_pMediaSelector, static_cast<void(VBoxMediaComboBox::*)(int)>(&VBoxMediaComboBox::currentIndexChanged),
     94            this, &UIWizardFirstRunPageBasic::completeChanged);
     95    connect(m_pSelectMediaButton, &QIToolButton::clicked,
     96            this, &UIWizardFirstRunPageBasic::sltOpenMediumWithFileOpenDialog);
    9597
    9698    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportApp.cpp

    r69500 r70805  
    7474
    7575        /* Setup connections: */
    76         connect(m_pButtonBox, SIGNAL(rejected()), this, SLOT(reject()));
    77         connect(m_pButtonBox, SIGNAL(accepted()), this, SLOT(accept()));
    78         connect(m_pPrintButton, SIGNAL(clicked()), this, SLOT(sltPrint()));
    79         connect(m_pSaveButton, SIGNAL(clicked()), this, SLOT(sltSave()));
     76        connect(m_pButtonBox, &QDialogButtonBox::rejected, this, &UIImportLicenseViewer::reject);
     77        connect(m_pButtonBox, &QDialogButtonBox::accepted, this, &UIImportLicenseViewer::accept);
     78        connect(m_pPrintButton, &QPushButton::clicked,     this, &UIImportLicenseViewer::sltPrint);
     79        connect(m_pSaveButton,  &QPushButton::clicked,     this, &UIImportLicenseViewer::sltSave);
    8080    }
    8181
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp

    r69500 r70805  
    5858
    5959    /* Setup connections: */
    60     connect(m_pFileSelector, SIGNAL(pathChanged(const QString&)), this, SIGNAL(completeChanged()));
     60    connect(m_pFileSelector, &UIEmptyFilePathSelector::pathChanged, this, &UIWizardImportAppPageBasic1::completeChanged);
    6161}
    6262
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp

    r69500 r70805  
    247247            pButtonBox->button(QDialogButtonBox::Yes)->setShortcut(Qt::Key_Enter);
    248248            //pButtonBox->button(QDialogButtonBox::No)->setShortcut(Qt::Key_Esc);
    249             connect(pButtonBox, SIGNAL(accepted()), this, SLOT(accept()));
    250             connect(pButtonBox, SIGNAL(rejected()), this, SLOT(reject()));
     249            connect(pButtonBox, &QIDialogButtonBox::accepted, this, &UIApplianceUnverifiedCertificateViewer::accept);
     250            connect(pButtonBox, &QIDialogButtonBox::rejected, this, &UIApplianceUnverifiedCertificateViewer::reject);
    251251            /* Add button-box into layout: */
    252252            pLayout->addWidget(pButtonBox);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp

    r69726 r70805  
    7373
    7474    /* Setup connections: */
    75     connect(m_pFileSelector, SIGNAL(pathChanged(const QString&)), this, SLOT(sltFilePathChangeHandler()));
     75    connect(m_pFileSelector, &UIEmptyFilePathSelector::pathChanged, this, &UIWizardImportAppPageExpert::sltFilePathChangeHandler);
    7676
    7777    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.cpp

    r69500 r70805  
    141141
    142142    /* Setup connections: */
    143     connect(m_pFormatButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SIGNAL(completeChanged()));
     143    connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     144            this, &UIWizardNewVDPageBasic1::completeChanged);
    144145
    145146    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic2.cpp

    r69500 r70805  
    114114
    115115    /* Setup connections: */
    116     connect(m_pVariantButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SIGNAL(completeChanged()));
    117     connect(m_pSplitBox, SIGNAL(stateChanged(int)), this, SIGNAL(completeChanged()));
     116    connect(m_pVariantButtonGroup,static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     117            this, &UIWizardNewVDPageBasic2::completeChanged);
     118    connect(m_pSplitBox, &QCheckBox::stateChanged,
     119            this, &UIWizardNewVDPageBasic2::completeChanged);
    118120
    119121    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic3.cpp

    r69500 r70805  
    203203
    204204    /* Setup connections: */
    205     connect(m_pLocationEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    206     connect(m_pLocationOpenButton, SIGNAL(clicked()), this, SLOT(sltSelectLocationButtonClicked()));
     205    connect(m_pLocationEditor, &QLineEdit::textChanged,    this, &UIWizardNewVDPageBasic3::completeChanged);
     206    connect(m_pLocationOpenButton, &QIToolButton::clicked, this, &UIWizardNewVDPageBasic3::sltSelectLocationButtonClicked);
    207207    connect(m_pEditorSize, &UIMediumSizeEditor::sigSizeChanged, this, &UIWizardNewVDPageBasic3::completeChanged);
    208208
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp

    r69726 r70805  
    159159
    160160    /* Setup connections: */
    161     connect(m_pFormatButtonGroup, SIGNAL(buttonClicked(QAbstractButton*)), this, SLOT(sltMediumFormatChanged()));
    162     connect(m_pVariantButtonGroup, SIGNAL(buttonClicked(QAbstractButton *)), this, SIGNAL(completeChanged()));
    163     connect(m_pSplitBox, SIGNAL(stateChanged(int)), this, SIGNAL(completeChanged()));
    164     connect(m_pLocationEditor, SIGNAL(textChanged(const QString &)), this, SIGNAL(completeChanged()));
    165     connect(m_pLocationOpenButton, SIGNAL(clicked()), this, SLOT(sltSelectLocationButtonClicked()));
    166     connect(m_pEditorSize, &UIMediumSizeEditor::sigSizeChanged, this, &UIWizardNewVDPageExpert::completeChanged);
     161    connect(m_pFormatButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     162            this, &UIWizardNewVDPageExpert::sltMediumFormatChanged);
     163    connect(m_pVariantButtonGroup, static_cast<void(QButtonGroup::*)(QAbstractButton*)>(&QButtonGroup::buttonClicked),
     164            this, &UIWizardNewVDPageExpert::completeChanged);
     165    connect(m_pSplitBox, &QCheckBox::stateChanged,
     166            this, &UIWizardNewVDPageExpert::completeChanged);
     167    connect(m_pLocationEditor, &QLineEdit::textChanged,
     168            this, &UIWizardNewVDPageExpert::completeChanged);
     169    connect(m_pLocationOpenButton, &QIToolButton::clicked,
     170            this, &UIWizardNewVDPageExpert::sltSelectLocationButtonClicked);
     171    connect(m_pEditorSize, &UIMediumSizeEditor::sigSizeChanged,
     172            this, &UIWizardNewVDPageExpert::completeChanged);
    167173
    168174    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp

    r69500 r70805  
    102102
    103103    /* Setup connections: */
    104     connect(m_pRamSlider, SIGNAL(valueChanged(int)), this, SLOT(sltRamSliderValueChanged()));
    105     connect(m_pRamEditor, SIGNAL(valueChanged(int)), this, SLOT(sltRamEditorValueChanged()));
     104    connect(m_pRamSlider, &VBoxGuestRAMSlider::valueChanged,
     105            this, &UIWizardNewVMPageBasic2::sltRamSliderValueChanged);
     106    connect(m_pRamEditor, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
     107            this, &UIWizardNewVMPageBasic2::sltRamEditorValueChanged);
    106108
    107109    /* Register fields: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp

    r69500 r70805  
    168168
    169169    /* Setup connections: */
    170     connect(m_pDiskSkip, SIGNAL(toggled(bool)), this, SLOT(sltVirtualDiskSourceChanged()));
    171     connect(m_pDiskCreate, SIGNAL(toggled(bool)), this, SLOT(sltVirtualDiskSourceChanged()));
    172     connect(m_pDiskPresent, SIGNAL(toggled(bool)), this, SLOT(sltVirtualDiskSourceChanged()));
    173     connect(m_pDiskSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(sltVirtualDiskSourceChanged()));
    174     connect(m_pVMMButton, SIGNAL(clicked()), this, SLOT(sltGetWithFileOpenDialog()));
     170    connect(m_pDiskSkip, &QRadioButton::toggled,
     171            this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged);
     172    connect(m_pDiskCreate, &QRadioButton::toggled,
     173            this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged);
     174    connect(m_pDiskPresent, &QRadioButton::toggled,
     175            this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged);
     176    connect(m_pDiskSelector, static_cast<void(VBoxMediaComboBox::*)(int)>(&VBoxMediaComboBox::currentIndexChanged),
     177            this, &UIWizardNewVMPageBasic3::sltVirtualDiskSourceChanged);
     178    connect(m_pVMMButton, &QIToolButton::clicked,
     179            this, &UIWizardNewVMPageBasic3::sltGetWithFileOpenDialog);
    175180
    176181    /* Register classes: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r69726 r70805  
    136136
    137137    /* Setup connections: */
    138     connect(m_pNameAndSystemEditor, SIGNAL(sigNameChanged(const QString &)), this, SLOT(sltNameChanged(const QString &)));
    139     connect(m_pNameAndSystemEditor, SIGNAL(sigOsTypeChanged()), this, SLOT(sltOsTypeChanged()));
    140     connect(m_pRamSlider, SIGNAL(valueChanged(int)), this, SLOT(sltRamSliderValueChanged()));
    141     connect(m_pRamEditor, SIGNAL(valueChanged(int)), this, SLOT(sltRamEditorValueChanged()));
    142     connect(m_pDiskSkip, SIGNAL(toggled(bool)), this, SLOT(sltVirtualDiskSourceChanged()));
    143     connect(m_pDiskCreate, SIGNAL(toggled(bool)), this, SLOT(sltVirtualDiskSourceChanged()));
    144     connect(m_pDiskPresent, SIGNAL(toggled(bool)), this, SLOT(sltVirtualDiskSourceChanged()));
    145     connect(m_pDiskSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(sltVirtualDiskSourceChanged()));
    146     connect(m_pVMMButton, SIGNAL(clicked()), this, SLOT(sltGetWithFileOpenDialog()));
     138    connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigNameChanged,
     139            this, &UIWizardNewVMPageExpert::sltNameChanged);
     140    connect(m_pNameAndSystemEditor, &UINameAndSystemEditor::sigOsTypeChanged,
     141            this, &UIWizardNewVMPageExpert::sltOsTypeChanged);
     142    connect(m_pRamSlider, &VBoxGuestRAMSlider::valueChanged,
     143            this, &UIWizardNewVMPageExpert::sltRamSliderValueChanged);
     144    connect(m_pRamEditor, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
     145            this, &UIWizardNewVMPageExpert::sltRamEditorValueChanged);
     146    connect(m_pDiskSkip, &QRadioButton::toggled,
     147            this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);
     148    connect(m_pDiskCreate, &QRadioButton::toggled,
     149            this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);
     150    connect(m_pDiskPresent, &QRadioButton::toggled,
     151            this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);
     152    connect(m_pDiskSelector, static_cast<void(VBoxMediaComboBox::*)(int)>(&VBoxMediaComboBox::currentIndexChanged),
     153            this, &UIWizardNewVMPageExpert::sltVirtualDiskSourceChanged);
     154    connect(m_pVMMButton, &QIToolButton::clicked,
     155            this, &UIWizardNewVMPageExpert::sltGetWithFileOpenDialog);
    147156
    148157    /* Register classes: */
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