CLinkDialog: Make use of Qt 5 signals and slots
This commit is contained in:
parent
6d21b568cb
commit
63debe3204
|
@ -15,11 +15,11 @@ CLinkDialog::CLinkDialog(CWorldEditor *pEditor, QWidget *pParent)
|
||||||
ui->SenderStateComboBox->setModel(&mSenderStateModel);
|
ui->SenderStateComboBox->setModel(&mSenderStateModel);
|
||||||
ui->ReceiverMessageComboBox->setModel(&mReceiverMessageModel);
|
ui->ReceiverMessageComboBox->setModel(&mReceiverMessageModel);
|
||||||
|
|
||||||
connect(ui->SwapButton, SIGNAL(clicked()), this, SLOT(OnSwapClicked()));
|
connect(ui->SwapButton, &QPushButton::clicked, this, &CLinkDialog::OnSwapClicked);
|
||||||
connect(ui->SenderPickFromViewport, SIGNAL(clicked()), this, SLOT(OnPickFromViewportClicked()));
|
connect(ui->SenderPickFromViewport, &QPushButton::clicked, this, &CLinkDialog::OnPickFromViewportClicked);
|
||||||
connect(ui->SenderPickFromList, SIGNAL(clicked()), this, SLOT(OnPickFromListClicked()));
|
connect(ui->SenderPickFromList, &QPushButton::clicked, this, &CLinkDialog::OnPickFromListClicked);
|
||||||
connect(ui->ReceiverPickFromViewport, SIGNAL(clicked()), this, SLOT(OnPickFromViewportClicked()));
|
connect(ui->ReceiverPickFromViewport, &QPushButton::clicked, this, &CLinkDialog::OnPickFromViewportClicked);
|
||||||
connect(ui->ReceiverPickFromList, SIGNAL(clicked()), this, SLOT(OnPickFromListClicked()));
|
connect(ui->ReceiverPickFromList, &QPushButton::clicked, this, &CLinkDialog::OnPickFromListClicked);
|
||||||
}
|
}
|
||||||
|
|
||||||
CLinkDialog::~CLinkDialog() = default;
|
CLinkDialog::~CLinkDialog() = default;
|
||||||
|
|
Loading…
Reference in New Issue