Commit a06e01e1 authored by Leon Do Castelo's avatar Leon Do Castelo
Browse files

Update autocell.cpp

parent 3c4ba261
......@@ -350,19 +350,18 @@ void AutoCell::sauvegarderGrille(){
};
void AutoCell::chargerGrilles(){
listeGrille.clear();
QString text;
QString nb;
text = liste->currentText();
edit_hauteur->setText(text);
list_grids->clear();
vector<QString> noms = Database::getInstance().getListeReseaux(text);
nb.setNum(noms.size());
edit_largeur->setText(nb);
for(size_t i=0 ; i<noms.size() ; i++)
for(size_t i=1 ; i<noms.size() ; i = i + 2)
list_grids->addItem(noms[i]);
listeGrille = noms;
}
void AutoCell::gererSimulation(){
......
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