CExportGameDialog: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-07-03 06:58:25 -04:00
parent d779a1cdfa
commit 9401275564
1 changed files with 2 additions and 2 deletions

View File

@ -241,8 +241,8 @@ bool CExportGameDialog::RequestWiiPortGame()
if (HasMP2) ComboBox.addItem(tr("Metroid Prime 2: Echoes"));
if (HasMP3) ComboBox.addItem(tr("Metroid Prime 3: Corruption"));
QDialogButtonBox ButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, &Dialog);
connect(&ButtonBox, SIGNAL(accepted()), &Dialog, SLOT(accept()));
connect(&ButtonBox, SIGNAL(rejected()), &Dialog, SLOT(reject()));
connect(&ButtonBox, &QDialogButtonBox::accepted, &Dialog, &QDialog::accept);
connect(&ButtonBox, &QDialogButtonBox::rejected, &Dialog, &QDialog::reject);
QVBoxLayout Layout;
Layout.addWidget(&Label);