CErrorLogDialog: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-28 19:16:52 -04:00
parent 21d83d43ee
commit 4aaf59be1a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ CErrorLogDialog::CErrorLogDialog(QWidget *pParent)
, ui(std::make_unique<Ui::CErrorLogDialog>()) , ui(std::make_unique<Ui::CErrorLogDialog>())
{ {
ui->setupUi(this); ui->setupUi(this);
connect(ui->CloseButton, SIGNAL(clicked()), this, SLOT(close())); connect(ui->CloseButton, &QPushButton::clicked, this, &CErrorLogDialog::close);
} }
CErrorLogDialog::~CErrorLogDialog() = default; CErrorLogDialog::~CErrorLogDialog() = default;