From 41416ebe5564329f80c8d8cafc251f0361d6c0c7 Mon Sep 17 00:00:00 2001 From: richelbilderbeek Date: Sun, 30 Oct 2016 18:22:34 +0100 Subject: [PATCH] Use Qt5 construct --- my_dialog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/my_dialog.cpp b/my_dialog.cpp index d106dea..64052b1 100644 --- a/my_dialog.cpp +++ b/my_dialog.cpp @@ -6,7 +6,12 @@ my_dialog::my_dialog(QWidget *parent) noexcept : ui(new Ui::my_dialog) { ui->setupUi(this); - connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(close())); + connect( + ui->pushButton, + &QPushButton::clicked, + this, + &my_dialog::close + ); } my_dialog::~my_dialog() noexcept