From 9401275564382e54bf4ee0a4a88d3d6d0725dce0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 06:58:25 -0400 Subject: [PATCH] CExportGameDialog: Make use of Qt 5 signals and slots --- src/Editor/CExportGameDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/CExportGameDialog.cpp b/src/Editor/CExportGameDialog.cpp index fdcba94e..8835f6b9 100644 --- a/src/Editor/CExportGameDialog.cpp +++ b/src/Editor/CExportGameDialog.cpp @@ -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);