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
d4e87f28
Unverified
Commit
d4e87f28
authored
Jun 09, 2021
by
Merwane Bouri
Browse files
bouton Play/Pause
parent
c0ccac31
Pipeline
#79525
passed with stages
in 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
forms/interface.ui
View file @
d4e87f28
...
...
@@ -76,7 +76,7 @@
<item>
<widget
class=
"QPushButton"
name=
"playPauseButton"
>
<property
name=
"text"
>
<string>
Play/
Pause
</string>
<string>
Pause
</string>
</property>
</widget>
</item>
...
...
@@ -570,7 +570,7 @@ pattern recorded :</string>
<x>
0
</x>
<y>
0
</y>
<width>
1068
</width>
<height>
2
5
</height>
<height>
2
2
</height>
</rect>
</property>
<widget
class=
"QMenu"
name=
"menuFichier"
>
...
...
src/interface.cpp
View file @
d4e87f28
...
...
@@ -794,9 +794,11 @@ void MainWindow::on_playPauseButton_clicked()
{
if
(
timer
->
isActive
())
{
//Pause
ui
->
playPauseButton
->
setText
(
"Pause"
);
timer
->
stop
();
}
else
{
//Play
ui
->
playPauseButton
->
setText
(
"play"
);
int
frequence
=
ui
->
simSpeedSpinbox
->
value
();
if
(
frequence
==
0
)
{
QMessageBox
::
critical
(
this
,
"Impossible de démarrer"
,
"Impossible de lancer la simulation à une vitesse nulle."
);
...
...
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