From c242c49a99edfb5e92e366b8b8bbdcfbf7518fb0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 22:14:01 -0400 Subject: [PATCH] CProjectSettingsDialog: Make use of Qt 5 signals and slots --- src/Editor/CProjectSettingsDialog.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Editor/CProjectSettingsDialog.cpp b/src/Editor/CProjectSettingsDialog.cpp index 009d08d6..2b140cf4 100644 --- a/src/Editor/CProjectSettingsDialog.cpp +++ b/src/Editor/CProjectSettingsDialog.cpp @@ -24,14 +24,14 @@ CProjectSettingsDialog::CProjectSettingsDialog(QWidget *pParent) { mpUI->setupUi(this); - connect(mpUI->GameNameLineEdit, SIGNAL(editingFinished()), this, SLOT(GameNameChanged())); - connect(mpUI->CookPackageButton, SIGNAL(clicked()), this, SLOT(CookPackage())); - connect(mpUI->CookAllDirtyPackagesButton, SIGNAL(clicked(bool)), this, SLOT(CookAllDirtyPackages())); - connect(mpUI->BuildIsoButton, SIGNAL(clicked(bool)), this, SLOT(BuildISO())); + connect(mpUI->GameNameLineEdit, &QLineEdit::editingFinished, this, &CProjectSettingsDialog::GameNameChanged); + connect(mpUI->CookPackageButton, &QPushButton::clicked, this, &CProjectSettingsDialog::CookPackage); + connect(mpUI->CookAllDirtyPackagesButton, &QPushButton::clicked, this, &CProjectSettingsDialog::CookAllDirtyPackages); + connect(mpUI->BuildIsoButton, &QPushButton::clicked, this, &CProjectSettingsDialog::BuildISO); - connect(gpEdApp, SIGNAL(ActiveProjectChanged(CGameProject*)), this, SLOT(ActiveProjectChanged(CGameProject*))); - connect(gpEdApp, SIGNAL(AssetsModified()), this, SLOT(SetupPackagesList())); - connect(gpEdApp, SIGNAL(PackagesCooked()), this, SLOT(SetupPackagesList())); + connect(gpEdApp, &CEditorApplication::ActiveProjectChanged, this, &CProjectSettingsDialog::ActiveProjectChanged); + connect(gpEdApp, &CEditorApplication::AssetsModified, this, &CProjectSettingsDialog::SetupPackagesList); + connect(gpEdApp, &CEditorApplication::PackagesCooked, this, &CProjectSettingsDialog::SetupPackagesList); // Set build ISO button color QPalette Palette = mpUI->BuildIsoButton->palette();