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
105e4f5e
Commit
105e4f5e
authored
Jun 12, 2021
by
Victor Blanchet
Browse files
method correction changeDelai
parent
26870f37
Pipeline
#79735
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/autocell.cpp
View file @
105e4f5e
...
...
@@ -150,7 +150,7 @@ this->setWindowTitle("Automate cellulaire");
spin_time_step
->
setFixedWidth
(
70
);
spin_time_step
->
setValue
(
1000
);
spin_time_step
->
setRange
(
500
,
2500
);
connect
(
spin_time_step
,
SIGNAL
(
valueChanged
(
int
i
)),
this
,
SLOT
(
changeDelai
(
int
i
)));
connect
(
spin_time_step
,
SIGNAL
(
valueChanged
()),
this
,
SLOT
(
changeDelai
()));
button_prev
=
new
QPushButton
(
"<<"
);
button_prev
->
setStyleSheet
(
"background-color: rgb(255,255,255)"
);
button_prev
->
setFixedSize
(
40
,
40
);
...
...
@@ -415,8 +415,8 @@ void AutoCell::initAutomate(const QString& name) {
matriceTorique
->
setCheckState
(
Qt
::
Checked
);
}
void
AutoCell
::
changeDelai
(
int
i
)
{
Automate
::
getInstance
().
setDelai
(
static_cast
<
unsigned
int
>
(
i
));
void
AutoCell
::
changeDelai
()
{
Automate
::
getInstance
().
setDelai
(
static_cast
<
unsigned
int
>
(
spin_time_step
->
value
()
));
}
void
AutoCell
::
next
()
{
...
...
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