Unverified Commit d4e87f28 authored by Merwane Bouri's avatar Merwane Bouri
Browse files

bouton Play/Pause

parent c0ccac31
Pipeline #79525 passed with stages
in 16 seconds
......@@ -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>25</height>
<height>22</height>
</rect>
</property>
<widget class="QMenu" name="menuFichier">
......
......@@ -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.");
......
Markdown is supported
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