GUI: Write error summary to CSV and TXT reports.

It makes more sense to write the one-line summary to TXT and
especially to CSV reports. Long multi-line verbose messages ruin
the layout these files.
This commit is contained in:
Kimmo Varis 2011-01-31 10:32:23 +02:00
parent 43b0e2a74c
commit b7cb684b1b
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ void CsvReport::WriteError(const ErrorItem &error)
QString line; QString line;
const QString file = QDir::toNativeSeparators(error.files[error.files.size() - 1]); const QString file = QDir::toNativeSeparators(error.files[error.files.size() - 1]);
line += QString("%1,%2,").arg(file).arg(error.lines[error.lines.size() - 1]); line += QString("%1,%2,").arg(file).arg(error.lines[error.lines.size() - 1]);
line += QString("%1,%2").arg(error.severity).arg(error.message); line += QString("%1,%2").arg(error.severity).arg(error.summary);
mTxtWriter << line << endl; mTxtWriter << line << endl;
} }

View File

@ -76,7 +76,7 @@ void TxtReport::WriteError(const ErrorItem &error)
} }
} }
line += QString("(%1) %2").arg(error.severity).arg(error.message); line += QString("(%1) %2").arg(error.severity).arg(error.summary);
mTxtWriter << line << endl; mTxtWriter << line << endl;
} }