Skip to content

Commit

Permalink
Use Qt5 construct
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Oct 30, 2016
1 parent f92bf9d commit 41416eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion my_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41416eb

Please sign in to comment.