mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Take into account interactive flag in more cases (#2208)
* Edge style * Token highlighting
This commit is contained in:
parent
1181f7ff5c
commit
8a3b51c291
@ -492,7 +492,7 @@ void DisassemblerGraphView::drawBlock(QPainter &p, GraphView::GraphBlock &block,
|
||||
}
|
||||
|
||||
// Highlight selected tokens
|
||||
if (highlight_token != nullptr) {
|
||||
if (interactive && highlight_token != nullptr) {
|
||||
int y = firstInstructionY;
|
||||
qreal tokenWidth = mFontMetrics->width(highlight_token->content);
|
||||
|
||||
|
@ -338,7 +338,7 @@ void GraphView::paint(QPainter &p, QPoint offset, QRect viewport, qreal scale, b
|
||||
continue;
|
||||
}
|
||||
QPolygonF polyline = edge.polyline;
|
||||
EdgeConfiguration ec = edgeConfiguration(block, &blocks[edge.target]);
|
||||
EdgeConfiguration ec = edgeConfiguration(block, &blocks[edge.target], interactive);
|
||||
QPen pen(ec.color);
|
||||
pen.setStyle(ec.lineStyle);
|
||||
pen.setWidthF(pen.width() * ec.width_scale);
|
||||
|
Loading…
Reference in New Issue
Block a user