From 417d8da6f4baf727e1a4b55ff17189bf2d1a3447 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 13 Nov 2020 21:47:48 -0800 Subject: [PATCH] Avoid a deprecated function --- utils/alsoft-config/mainwindow.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index 547dc300..8e6c7bea 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -365,11 +365,11 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->closeCancelButton, &QPushButton::clicked, this, &MainWindow::cancelCloseAction); connect(ui->applyButton, &QPushButton::clicked, this, &MainWindow::saveCurrentConfig); - auto qcb_cicstr = static_cast(&QComboBox::currentIndexChanged); - connect(ui->channelConfigCombo, qcb_cicstr, this, &MainWindow::enableApplyButton); - connect(ui->sampleFormatCombo, qcb_cicstr, this, &MainWindow::enableApplyButton); - connect(ui->stereoModeCombo, qcb_cicstr, this, &MainWindow::enableApplyButton); - connect(ui->sampleRateCombo, qcb_cicstr, this, &MainWindow::enableApplyButton); + auto qcb_cicint = static_cast(&QComboBox::currentIndexChanged); + connect(ui->channelConfigCombo, qcb_cicint, this, &MainWindow::enableApplyButton); + connect(ui->sampleFormatCombo, qcb_cicint, this, &MainWindow::enableApplyButton); + connect(ui->stereoModeCombo, qcb_cicint, this, &MainWindow::enableApplyButton); + connect(ui->sampleRateCombo, qcb_cicint, this, &MainWindow::enableApplyButton); connect(ui->sampleRateCombo, &QComboBox::editTextChanged, this, &MainWindow::enableApplyButton); connect(ui->resamplerSlider, &QSlider::valueChanged, this, &MainWindow::updateResamplerLabel); @@ -379,8 +379,8 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->periodCountSlider, &QSlider::valueChanged, this, &MainWindow::updatePeriodCountEdit); connect(ui->periodCountEdit, &QLineEdit::editingFinished, this, &MainWindow::updatePeriodCountSlider); - connect(ui->stereoEncodingComboBox, qcb_cicstr, this, &MainWindow::enableApplyButton); - connect(ui->ambiFormatComboBox, qcb_cicstr, this, &MainWindow::enableApplyButton); + connect(ui->stereoEncodingComboBox, qcb_cicint, this, &MainWindow::enableApplyButton); + connect(ui->ambiFormatComboBox, qcb_cicint, this, &MainWindow::enableApplyButton); connect(ui->outputLimiterCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); connect(ui->outputDitherCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); @@ -398,8 +398,8 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->decoder71LineEdit, &QLineEdit::textChanged, this, &MainWindow::enableApplyButton); connect(ui->decoder71Button, &QPushButton::clicked, this, &MainWindow::select71DecoderFile); - connect(ui->preferredHrtfComboBox, qcb_cicstr, this, &MainWindow::enableApplyButton); - connect(ui->hrtfStateComboBox, qcb_cicstr, this, &MainWindow::enableApplyButton); + connect(ui->preferredHrtfComboBox, qcb_cicint, this, &MainWindow::enableApplyButton); + connect(ui->hrtfStateComboBox, qcb_cicint, this, &MainWindow::enableApplyButton); connect(ui->hrtfmodeSlider, &QSlider::valueChanged, this, &MainWindow::updateHrtfModeLabel); connect(ui->hrtfAddButton, &QPushButton::clicked, this, &MainWindow::addHrtfFile); @@ -424,7 +424,7 @@ MainWindow::MainWindow(QWidget *parent) : connect(ui->disabledBackendList, &QListWidget::customContextMenuRequested, this, &MainWindow::showDisabledBackendMenu); connect(ui->backendCheckBox, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); - connect(ui->defaultReverbComboBox, qcb_cicstr, this, &MainWindow::enableApplyButton); + connect(ui->defaultReverbComboBox, qcb_cicint, this, &MainWindow::enableApplyButton); connect(ui->enableEaxReverbCheck, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); connect(ui->enableStdReverbCheck, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton); connect(ui->enableAutowahCheck, &QCheckBox::stateChanged, this, &MainWindow::enableApplyButton);