Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
3a09da61
Commit
3a09da61
authored
Jun 09, 2021
by
Yann Boucher
Browse files
Modification en temps réel de la vitesse de simulation
parent
9de7e6dd
Pipeline
#79527
passed with stages
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/interface.cpp
View file @
3a09da61
...
...
@@ -852,3 +852,14 @@ void MainWindow::on_pushButton_clicked()
ui
->
grid_view
->
copy_grid
(
newGrid
);
}
void
MainWindow
::
on_simSpeedSlider_sliderMoved
(
int
position
)
{
int
frequence
=
position
;
if
(
frequence
==
0
)
return
;
timer
->
setInterval
(
1000
/
frequence
);
timer
->
start
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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