Commit e59b56a0 authored by Victor Blanchet's avatar Victor Blanchet
Browse files

Ajout msg erreur délai

parent a586637e
Pipeline #79712 passed with stage
in 15 seconds
......@@ -399,7 +399,12 @@ void AutoCell::initAutomate(const QString& name) {
}
void AutoCell::changeDelai() {
// @todo : implémenter un message d'erreur
if(edit_time_step->text() == "" || edit_time_step->text().toInt() < 500 || edit_time_step->text().toInt() > 2500 ){
QString msg("Veuillez indiquer un pas de temps entre 500 ms et 2500 ms");
afficherErreur(msg);
edit_time_step->setText("1000");
return;
}
Automate::getInstance().setDelai(static_cast<unsigned int>(edit_time_step->text().toInt()));
}
......
Supports Markdown
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