diff --git a/mainwindow.cpp b/mainwindow.cpp index 867ab0e..224cb9a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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(); diff --git a/mainwindow.ui b/mainwindow.ui index a380958..9f5614c 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -7,9 +7,21 @@ 0 0 800 - 626 + 598 + + + 0 + 0 + + + + + 0 + 0 + + MainWindow @@ -285,14 +297,20 @@ - + + + + 0 + 0 + + QFrame::Shape::StyledPanel QFrame::Shadow::Raised - + 0 @@ -325,7 +343,7 @@ - + 0 @@ -336,7 +354,7 @@ - + @@ -362,7 +380,7 @@ - + @@ -391,7 +409,7 @@ - + @@ -411,6 +429,16 @@ + + + + 10 + 130 + 761 + 81 + + +