fix some Qt6 bugs (buttonClicked -> idClicked)

This commit is contained in:
Arisotura 2024-07-15 13:00:40 +02:00
parent d92c9fcd90
commit 2031f491f0
2 changed files with 8 additions and 0 deletions

View File

@ -103,7 +103,11 @@ AudioSettingsDialog::AudioSettingsDialog(QWidget* parent) : QDialog(parent), ui(
grpMicMode->addButton(ui->rbMicExternal, micInputType_External);
grpMicMode->addButton(ui->rbMicNoise, micInputType_Noise);
grpMicMode->addButton(ui->rbMicWav, micInputType_Wav);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(grpMicMode, SIGNAL(buttonClicked(int)), this, SLOT(onChangeMicMode(int)));
#else
connect(grpMicMode, SIGNAL(idClicked(int)), this, SLOT(onChangeMicMode(int)));
#endif
grpMicMode->button(mictype)->setChecked(true);
ui->txtMicWavPath->setText(cfg.GetQString("Mic.WavPath"));

View File

@ -397,7 +397,11 @@ TitleImportDialog::TitleImportDialog(QWidget* parent, QString& apppath, const DS
grpTmdSource = new QButtonGroup(this);
grpTmdSource->addButton(ui->rbTmdFromFile, 0);
grpTmdSource->addButton(ui->rbTmdFromNUS, 1);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
connect(grpTmdSource, SIGNAL(buttonClicked(int)), this, SLOT(onChangeTmdSource(int)));
#else
connect(grpTmdSource, SIGNAL(idClicked(int)), this, SLOT(onChangeTmdSource(int)));
#endif
grpTmdSource->button(0)->setChecked(true);
}