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

Update autocell.cpp

parent 0d8ac8be
......@@ -65,10 +65,11 @@ AutoCell::AutoCell(QWidget* parent):QWidget(parent)
// récupération des automates en mémoire
/*vector<QString> noms_modeles = database.getAutomates();
for(auto : nom, noms_modeles){
liste->addItem(nom);
}*/
std::vector<QString> noms_modeles = Database::getInstance().getAutomates();
for(size_t i = 0 ; i<noms_modeles.size() ; i++){
std::cout<<"modele :"<<noms_modeles[i].toStdString()<<std::endl;
liste->addItem(noms_modeles[i]);
}
liste->addItem("modèle 1");
liste->addItem("modèle 2");
......
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