use new signals slots syntax
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user