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