Commit 6afc72d7 authored by Leon Do Castelo's avatar Leon Do Castelo
Browse files

Update paramalpha.cpp

parent 17eef2e1
Pipeline #79672 passed with stage
in 15 seconds
...@@ -49,10 +49,10 @@ ParamAlpha::ParamAlpha(const int nbEtats): QWidget(), nb(nbEtats) { ...@@ -49,10 +49,10 @@ ParamAlpha::ParamAlpha(const int nbEtats): QWidget(), nb(nbEtats) {
} }
void ParamAlpha::valide() { void ParamAlpha::valide() {
EnsembleEtat& e = Automate::getInstance().getEnsemble(); Automate::getInstance().getEnsemble();
e.reset(); Automate::getInstance().getEnsemble().reset();
for(int i = 0; i < nb; ++i) { for(int i = 0; i < nb; ++i) {
e.ajouterEtat(i, label[i]->text().toStdString(), red[i]->value(), green[i]->value(), blue[i]->value()); Automate::getInstance().getEnsemble().ajouterEtat(i, label[i]->text().toStdString(), red[i]->value(), green[i]->value(), blue[i]->value());
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment