refs #895, also log when parts are empty

* added empty flag
* move logging into own function (because it is called in multiple places now)
This commit is contained in:
Klaus Basan
2017-03-04 21:51:49 +01:00
committed by Mathew Sutcliffe
parent aa14c564b0
commit a27717cf8b
4 changed files with 26 additions and 10 deletions

View File

@@ -228,7 +228,7 @@ namespace BlackMisc
QLatin1String("<td>") % log.callsign.asString() % QLatin1String("</td>") %
QLatin1String("<td>") % msSinceEpochToTime(log.timestamp) % QLatin1String("</td>") %
(changedParts ? QLatin1String("<td class=\"changed\">*</td>") : QLatin1String("<td></td>")) %
QLatin1String("<td>") % log.parts.toQString() % QLatin1String("</td>");
QLatin1String("<td>") % (log.empty ? QLatin1String("empty") : log.parts.toQString()) % QLatin1String("</td>");
}
tableRows += QLatin1String("</tbody>\n");
return QLatin1String("<table class=\"small\">\n") % tableHeader % tableRows % QLatin1String("</table>\n");