use new signals slots syntax

This commit is contained in:
2026-04-24 22:29:13 +02:00
parent 409ec93d7d
commit b21fc352b4
5 changed files with 35 additions and 34 deletions

View File

@@ -84,10 +84,10 @@ SelectedBuildingPanel::SelectedBuildingPanel(Simulation* sim,
m_layout->addWidget(m_clearBeltBtn);
m_layout->addWidget(m_buffersLabel);
connect(m_recipeCombo, SIGNAL(currentIndexChanged(int)),
this, SLOT(onRecipeChanged(int)));
connect(m_clearBeltBtn, SIGNAL(clicked()),
this, SLOT(onClearBelt()));
connect(m_recipeCombo, qOverload<int>(&QComboBox::currentIndexChanged),
this, &SelectedBuildingPanel::onRecipeChanged);
connect(m_clearBeltBtn, &QPushButton::clicked,
this, &SelectedBuildingPanel::onClearBelt);
buildEmpty();
}