From 63debe3204ae2e5758a581fd4b53d1e4c94ef8d3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 20:03:13 -0400 Subject: [PATCH] CLinkDialog: Make use of Qt 5 signals and slots --- src/Editor/WorldEditor/CLinkDialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/WorldEditor/CLinkDialog.cpp b/src/Editor/WorldEditor/CLinkDialog.cpp index cfb7f545..fb42d613 100644 --- a/src/Editor/WorldEditor/CLinkDialog.cpp +++ b/src/Editor/WorldEditor/CLinkDialog.cpp @@ -15,11 +15,11 @@ CLinkDialog::CLinkDialog(CWorldEditor *pEditor, QWidget *pParent) ui->SenderStateComboBox->setModel(&mSenderStateModel); ui->ReceiverMessageComboBox->setModel(&mReceiverMessageModel); - connect(ui->SwapButton, SIGNAL(clicked()), this, SLOT(OnSwapClicked())); - connect(ui->SenderPickFromViewport, SIGNAL(clicked()), this, SLOT(OnPickFromViewportClicked())); - connect(ui->SenderPickFromList, SIGNAL(clicked()), this, SLOT(OnPickFromListClicked())); - connect(ui->ReceiverPickFromViewport, SIGNAL(clicked()), this, SLOT(OnPickFromViewportClicked())); - connect(ui->ReceiverPickFromList, SIGNAL(clicked()), this, SLOT(OnPickFromListClicked())); + connect(ui->SwapButton, &QPushButton::clicked, this, &CLinkDialog::OnSwapClicked); + connect(ui->SenderPickFromViewport, &QPushButton::clicked, this, &CLinkDialog::OnPickFromViewportClicked); + connect(ui->SenderPickFromList, &QPushButton::clicked, this, &CLinkDialog::OnPickFromListClicked); + connect(ui->ReceiverPickFromViewport, &QPushButton::clicked, this, &CLinkDialog::OnPickFromViewportClicked); + connect(ui->ReceiverPickFromList, &QPushButton::clicked, this, &CLinkDialog::OnPickFromListClicked); } CLinkDialog::~CLinkDialog() = default;