ValidateBtn

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-06-20 14:34:28 +02:00
parent f1d1578554
commit 591737118b
3 changed files with 353 additions and 346 deletions
+17
View File
@@ -257,6 +257,7 @@ void MainWindow::on_actionEditCut_triggered()
void MainWindow::on_pathNumber_valueChanged(int arg1)
{
this->loadPath(path.at(ui->pathNumber->value()-1));
currentPath = path.at(arg1-1);
}
@@ -265,3 +266,19 @@ void MainWindow::on_stepNumber_valueChanged(int arg1)
this->loadStep(currentPath->getStep().at(arg1-1));
}
void MainWindow::on_validateBtn_clicked()
{
currentPath->setName(ui->titleEdit->text());
currentPath->setCity(ui->locEdit->text());
currentPath->setImage(ui->imagePath->text());
currentPath->setLength(ui->lengthSpin->value());
currentPath->setDifficulty(ui->diffSpin->value());
currentPath->setDuration(ui->durationSpin->value());
Step currentStep = currentPath->getStep().at(ui->stepNumber->value()-1);
currentStep.setTitle(ui->stepTitle->text());
currentStep.setResponse(ui->responseSpin->value());
}