Add step btn
This commit is contained in:
+9
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user