diff --git a/src/Editor/TestDialog.cpp b/src/Editor/TestDialog.cpp index 469ed439..6544db6e 100644 --- a/src/Editor/TestDialog.cpp +++ b/src/Editor/TestDialog.cpp @@ -8,9 +8,9 @@ TestDialog::TestDialog(QWidget *pParent) , ui(std::make_unique()) { ui->setupUi(this); - connect(ui->spinBox, SIGNAL(valueChanged(int)), this, SLOT(OnSpinBoxChanged(int))); - connect(ui->spinBox_2, SIGNAL(valueChanged(int)), this, SLOT(OnSpinBoxChanged(int))); - connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(OnFind())); + connect(ui->spinBox, qOverload(&QSpinBox::valueChanged), this, &TestDialog::OnSpinBoxChanged); + connect(ui->spinBox_2, qOverload(&QSpinBox::valueChanged), this, &TestDialog::OnSpinBoxChanged); + connect(ui->pushButton, &QPushButton::clicked, this, &TestDialog::OnFind); } TestDialog::~TestDialog() = default;