Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
6167f176
Verified
Commit
6167f176
authored
Jun 09, 2021
by
Romain De Laage De Bellefaye
🌳
Browse files
Merge branch 'master' of gitlab.utc.fr:rdelaage/lo21-projet
parents
75605272
2aec386f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parametragemodele.cpp
View file @
6167f176
...
...
@@ -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
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment