MCPcopy Create free account
hub / github.com/SaschaWillems/VulkanCapsViewer / saveReport

Method saveReport

vulkanCapsViewer.cpp:2017–2027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2015}
2016
2017bool 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
2029void VulkanCapsViewer::checkReportDatabaseState()
2030{

Callers 1

mainFunction · 0.80

Calls 1

toJsonMethod · 0.80

Tested by

no test coverage detected