Commit 2aec386f authored by Maxime Goret's avatar Maxime Goret
Browse files

Modif paramétrage

parent a1fdc1f5
......@@ -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