From 4aaf59be1abb28113a0a198ce9c13012743860c6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 19:16:52 -0400 Subject: [PATCH] CErrorLogDialog: Make use of Qt 5 signals and slots --- src/Editor/CErrorLogDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor/CErrorLogDialog.cpp b/src/Editor/CErrorLogDialog.cpp index 16000b13..8baaf539 100644 --- a/src/Editor/CErrorLogDialog.cpp +++ b/src/Editor/CErrorLogDialog.cpp @@ -8,7 +8,7 @@ CErrorLogDialog::CErrorLogDialog(QWidget *pParent) , ui(std::make_unique()) { ui->setupUi(this); - connect(ui->CloseButton, SIGNAL(clicked()), this, SLOT(close())); + connect(ui->CloseButton, &QPushButton::clicked, this, &CErrorLogDialog::close); } CErrorLogDialog::~CErrorLogDialog() = default;