Fix issues

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-06-20 16:51:11 +02:00
parent d14bd80a23
commit 1011a9f123
8 changed files with 81 additions and 55 deletions
+17 -2
View File
@@ -403,7 +403,6 @@ void MainWindow::on_toolButton_clicked()
loadImage(fileName);
}
<<<<<<< mainwindow.cpp
int MainWindow::getIndexPath() const
{
return indexPath;
@@ -442,7 +441,7 @@ Path *MainWindow::getCurrentPath() const
void MainWindow::setCurrentPath(Path *newCurrentPath)
{
currentPath = newCurrentPath;
=======
}
void MainWindow::saveFile(){
QString fileName;
@@ -571,3 +570,19 @@ void MainWindow::on_validateBtn_clicked()
}
void MainWindow::loadAndExportPaths(QStringList fichiers) {
for (const QString& nomFichier : fichiers) {
QFile* f = new QFile(nomFichier);
Path* p = new Path(f);
path.append(p);
}
int exportIndex = 1;
for (Path* p : path) {
currentPath = p;
exportHTMLMap(exportIndex++);
}
}