More file previews

This adds previews for downloaded pdfs and code files.

![image](/uploads/9c199e91a1b4ea296c9b82a76e11038b/image.png)

![image](/uploads/17ea3869469417ee78e650ce750dbeb7/image.png)
This commit is contained in:
James Graham
2024-03-19 20:06:32 +00:00
committed by Tobias Fella
parent 33c55d1563
commit 1671e05d12
13 changed files with 195 additions and 36 deletions

View File

@@ -133,6 +133,11 @@ void ItineraryModel::loadData()
beginResetModel();
m_data = QJsonDocument::fromJson(data).array();
endResetModel();
Q_EMIT loaded();
});
connect(process, &QProcess::errorOccurred, this, [this]() {
Q_EMIT loadErrorOccurred();
});
}