mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Added comments to graph view
This commit is contained in:
parent
48e9767a66
commit
34ef34c581
@ -1594,11 +1594,19 @@ void DisassemblerGraphView::loadCurrentGraph()
|
||||
|
||||
RichTextPainter::CustomRichText_t assembly;
|
||||
assembly.highlight = false;
|
||||
assembly.flags = RichTextPainter::FlagNone;
|
||||
assembly.flags = RichTextPainter::FlagColor;
|
||||
assembly.text = op["opcode"].toString();
|
||||
|
||||
richText.insert(richText.begin(), assembly);
|
||||
|
||||
if (op["comment"].toString().length()) {
|
||||
RichTextPainter::CustomRichText_t comment;
|
||||
comment.text = QString(" ; %1").arg(QByteArray::fromBase64(op["comment"].toString().toLocal8Bit()).data());
|
||||
comment.textColor = Qt::blue;
|
||||
comment.flags = RichTextPainter::FlagColor;
|
||||
richText.insert(richText.end(), comment);
|
||||
}
|
||||
|
||||
i.text = Text(richText);
|
||||
b.instrs.push_back(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user