60 for (
int i = 0; i <
error.errorPath.size(); i++) {
61 const QString file = QDir::toNativeSeparators(
error.errorPath[i].file);
62 line += QString(
"[%1:%2]").arg(file).arg(
error.errorPath[i].line);
63 if (i <
error.errorPath.size() - 1) {
67 if (i ==
error.errorPath.size() - 1) {
72 if (
error.inconclusive) {
74 temp += tr(
"inconclusive");
78 line +=
error.summary;
80 #if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
A class containing error data for one error.
static QString toString(Severity severity)
A base class for reports.
QFile * getFile()
Get the file object where the report is written to.
virtual bool create()
Create the report (file).
void writeHeader() override
Write report header.
void writeFooter() override
Write report footer.
void writeError(const ErrorItem &error) override
Write error to report.
TxtReport(const QString &filename)
bool create() override
Create the report (file).
QTextStream mTxtWriter
Text stream writer for writing the report in text format.
@ error
Programming error.