ValidateBtn
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user