display dialog

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-06-20 11:01:03 +02:00
parent c4bcb8f0b8
commit 55837df72e
2 changed files with 44 additions and 10 deletions
+9 -3
View File
@@ -98,9 +98,15 @@ void MainWindow::loadPath()
loadImage(p->getImage());
if(!steps.isEmpty()) {
ui->stepTitle->setText(p->getStep().first().getTitle());
ui->LatitudeSpin->setValue(p->getStep().first().getLatitude());
ui->longitudeSpin->setValue(p->getStep().first().getLongitude());
Step firstStep = p->getStep().first();
ui->stepTitle->setText(firstStep.getTitle());
ui->LatitudeSpin->setValue(firstStep.getLatitude());
ui->longitudeSpin->setValue(firstStep.getLongitude());
for(int i = 0; i < firstStep.getTexte().length(); i++) {
QString q = firstStep.getPersonnage().at(i) + ": " + firstStep.getTexte().at(i);
ui->dialogEdit->appendPlainText(q);
}
}
int pathCount = path.length();