Fix formatting of debug messages to log view.

Ticket #2513 (GUI: Garbage printed to log after missing include warning)

The linenumber was not properly converted to the QString so there
were garbage printed to the log.
This commit is contained in:
Kimmo Varis 2011-01-27 08:47:28 +02:00
parent 001d382614
commit 50dba88077
1 changed files with 5 additions and 3 deletions

View File

@ -43,9 +43,11 @@ ErrorItem::ErrorItem(const ErrorLine &line)
QString ErrorItem::ToString() const
{
QString str = file + " - " + id + " - " + severity +"\n";
str += " " + summary;
str += "\n" + message;
str += summary + "\n";
str += message + "\n";
for (int i = 0; i < files.size(); i++)
str += " " + files[i] + ": " + lines[i] + "\n";
{
str += " " + files[i] + ": " + QString::number(lines[i]) + "\n";
}
return str;
}