CProjectSettingsDialog: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-28 22:14:01 -04:00
parent 3203b1303c
commit c242c49a99
1 changed files with 7 additions and 7 deletions

View File

@ -24,14 +24,14 @@ CProjectSettingsDialog::CProjectSettingsDialog(QWidget *pParent)
{ {
mpUI->setupUi(this); mpUI->setupUi(this);
connect(mpUI->GameNameLineEdit, SIGNAL(editingFinished()), this, SLOT(GameNameChanged())); connect(mpUI->GameNameLineEdit, &QLineEdit::editingFinished, this, &CProjectSettingsDialog::GameNameChanged);
connect(mpUI->CookPackageButton, SIGNAL(clicked()), this, SLOT(CookPackage())); connect(mpUI->CookPackageButton, &QPushButton::clicked, this, &CProjectSettingsDialog::CookPackage);
connect(mpUI->CookAllDirtyPackagesButton, SIGNAL(clicked(bool)), this, SLOT(CookAllDirtyPackages())); connect(mpUI->CookAllDirtyPackagesButton, &QPushButton::clicked, this, &CProjectSettingsDialog::CookAllDirtyPackages);
connect(mpUI->BuildIsoButton, SIGNAL(clicked(bool)), this, SLOT(BuildISO())); connect(mpUI->BuildIsoButton, &QPushButton::clicked, this, &CProjectSettingsDialog::BuildISO);
connect(gpEdApp, SIGNAL(ActiveProjectChanged(CGameProject*)), this, SLOT(ActiveProjectChanged(CGameProject*))); connect(gpEdApp, &CEditorApplication::ActiveProjectChanged, this, &CProjectSettingsDialog::ActiveProjectChanged);
connect(gpEdApp, SIGNAL(AssetsModified()), this, SLOT(SetupPackagesList())); connect(gpEdApp, &CEditorApplication::AssetsModified, this, &CProjectSettingsDialog::SetupPackagesList);
connect(gpEdApp, SIGNAL(PackagesCooked()), this, SLOT(SetupPackagesList())); connect(gpEdApp, &CEditorApplication::PackagesCooked, this, &CProjectSettingsDialog::SetupPackagesList);
// Set build ISO button color // Set build ISO button color
QPalette Palette = mpUI->BuildIsoButton->palette(); QPalette Palette = mpUI->BuildIsoButton->palette();