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
+3 -3
View File
@@ -51,10 +51,10 @@ QList<Step> Path::getStep() const
}
Path::Path(QFile *file){
if (!file->open(QIODevice::ReadOnly)) {
/*if (!file->open(QIODevice::ReadOnly)) {
qWarning() << "Could not open file:" << file->errorString();
return;
}
}*/
QByteArray data = file->readAll();
file->close();
QJsonDocument doc = QJsonDocument::fromJson(data);
@@ -75,7 +75,7 @@ Path::Path(QFile *file){
QJsonArray stepsArray = json["steps"].toArray();
for (const QJsonValue &stepValue : stepsArray) {
QJsonObject stepObj = stepValue.toObject();
//step.append(Step(stepObj));
step.append(Step(stepObj));
}
}