Add step btn

This commit is contained in:
Pyramond
2025-06-21 13:14:54 +02:00
parent 2f1b9b2097
commit ffcb6fa203
3 changed files with 28 additions and 14 deletions
+9 -1
View File
@@ -166,7 +166,12 @@ void MainWindow::addNewPath()
void MainWindow::addNewStep()
{
this->on_validateBtn_clicked();
currentPath->getStep().append(Step());
ui->stepNumber->setMaximum(currentPath->getStep().length());
ui->stepNumber->setSuffix("/" + QString::number(currentPath->getStep().length()));
}
void MainWindow::exportHTMLMap(int index)
{
std::ofstream file("./pages/parcours" + std::to_string(index) + ".html");
@@ -921,5 +926,8 @@ void MainWindow::on_actionFont_color_triggered()
this->setColor();
}
void MainWindow::on_addStep_clicked()
{
this->addNewStep();
}