mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-21 14:16:08 +00:00
make the shadow selection wider in hex (#1584)
This commit is contained in:
parent
31838a3a35
commit
14665cbe8a
@ -680,6 +680,7 @@ void HexWidget::drawCursor(QPainter &painter, bool shadow)
|
||||
QPen pen(Qt::gray);
|
||||
pen.setStyle(Qt::DashLine);
|
||||
painter.setPen(pen);
|
||||
shadowCursor.screenPos.setWidth(cursorOnAscii ? itemWidth() : charWidth);
|
||||
painter.drawRect(shadowCursor.screenPos);
|
||||
painter.setPen(Qt::SolidLine);
|
||||
}
|
||||
@ -863,7 +864,6 @@ void HexWidget::updateMetrics()
|
||||
shadowCursor.screenPos.moveTopLeft(itemArea.topLeft());
|
||||
} else {
|
||||
cursor.screenPos.moveTopLeft(itemArea.topLeft());
|
||||
|
||||
shadowCursor.screenPos.setWidth(charWidth);
|
||||
shadowCursor.screenPos.moveTopLeft(asciiArea.topLeft());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user