ajout export html

This commit is contained in:
p2405951
2025-06-20 10:58:40 +02:00
parent 730d0850f3
commit 213f8e1217
8 changed files with 225 additions and 6 deletions
+13 -3
View File
@@ -1,7 +1,5 @@
#include "mainwindow.h"
#include "path.h"
#include <QApplication>
#include <step.h>
#include <QFile>
@@ -11,7 +9,19 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
QFile file("data/parcours1.json");
if (!file.open(QIODevice::ReadOnly)) {
qWarning() << "Impossible d'ouvrir le fichier data/parcours1.json";
return -1;
}
Path* p = new Path(&file);
file.close();
QList<Path*> paths = w.getPath();
paths.append(p);
w.setPath(paths);
w.setCurrentPath(p);
w.exportHTMLMap();
//w.show();
return a.exec();
}