This commit is contained in:
ackimixs
2024-04-29 17:28:08 +02:00
parent 8fe3aea13f
commit 66c5959727
3 changed files with 9 additions and 0 deletions

View File

@@ -77,3 +77,7 @@ void InGame::updateTime()
emit askTCPServer("ihm;strat;get speed;1");
emit askTCPServer("ihm;strat;get angle;1");
}
void InGame::stopTimer() {
this->timer->stop();
}

View File

@@ -21,6 +21,8 @@ public:
void showEvent(QShowEvent* event) override;
void stopTimer();
signals:
void askTCPServer(const std::string& message);

View File

@@ -245,4 +245,7 @@ void MainWindow::handleMessage(const std::string& message)
{
this->inGame->updateAngle(list[3]);
}
else if (list[2] == "end") {
this->inGame->stopTimer();
}
}