}
void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes,
- const QString& line) {
+ QString line, const QString& href) {
QString bytestring;
for (size_t i(0); i < num_bytes; ++i) {
if (old_text == "") {
old_text = "<table>";
}
+
+ line = line.toHtmlEscaped();
+ if (href != "") {
+ line = "<a href=\"" + href + "\">" + line + "</a>";
+ }
+
QString new_text =
old_text.remove("</table>") +
"<tr><td>" + bytestring +
- "</td><td>" + line.toHtmlEscaped() +
+ "</td><td>" + line +
"</td><td>" + "" +
"</td></tr></table>";