45 #if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
46 mTxtWriter <<
"File, Line, Severity, Id, Summary" << Qt::endl;
48 mTxtWriter <<
"File, Line, Severity, Id, Summary" << endl;
64 const QString file = QDir::toNativeSeparators(
error.errorPath.back().file);
65 QString line = QString(
"%1,%2,").arg(file).arg(
error.errorPath.back().line);
67 #if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
bool create() override
Create the report (file).
void writeHeader() override
Write report header.
void writeFooter() override
Write report footer.
QTextStream mTxtWriter
Text stream writer for writing the report in text format.
CsvReport(const QString &filename)
void writeError(const ErrorItem &error) override
Write error to report.
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).
@ error
Programming error.