Verified Commit 6167f176 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Merge branch 'master' of gitlab.utc.fr:rdelaage/lo21-projet

parents 75605272 2aec386f
......@@ -129,9 +129,10 @@ void NouveauModele::affGrille() {
grid->setItem(i, j, new QTableWidgetItem);
grid->item(i, j)->setFlags(Qt::ItemIsEnabled);
}
}
QColor noir = Qt::black;
grid->item(2,2)->setBackground(noir);
connect(grid, SIGNAL(clicked(const QModelIndex&)), this, SLOT(modifGrille(const QModelIndex&)));
}
......@@ -140,7 +141,10 @@ void NouveauModele::modifGrille(const QModelIndex& index){
unsigned int j = index.column();
QColor rouge = Qt::red;
grid->item(i,j)->setBackground(rouge);
if (i == 2 && j == 2){
return;
}else grid->item(i,j)->setBackground(rouge);
}
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