| 2015 | } |
| 2016 | |
| 2017 | bool VulkanCapsViewer::saveReport(QString fileName, QString submitter, QString comment) |
| 2018 | { |
| 2019 | QJsonObject jsonReport; |
| 2020 | reportToJson(submitter, comment, jsonReport); |
| 2021 | QJsonDocument doc(jsonReport); |
| 2022 | qint64 bytesWritten; |
| 2023 | QFile jsonFile(fileName); |
| 2024 | jsonFile.open(QFile::WriteOnly); |
| 2025 | bytesWritten = jsonFile.write(doc.toJson(QJsonDocument::Indented)); |
| 2026 | return (bytesWritten > -1); |
| 2027 | } |
| 2028 | |
| 2029 | void VulkanCapsViewer::checkReportDatabaseState() |
| 2030 | { |