mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-22 14:43:46 +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);
|
QPen pen(Qt::gray);
|
||||||
pen.setStyle(Qt::DashLine);
|
pen.setStyle(Qt::DashLine);
|
||||||
painter.setPen(pen);
|
painter.setPen(pen);
|
||||||
|
shadowCursor.screenPos.setWidth(cursorOnAscii ? itemWidth() : charWidth);
|
||||||
painter.drawRect(shadowCursor.screenPos);
|
painter.drawRect(shadowCursor.screenPos);
|
||||||
painter.setPen(Qt::SolidLine);
|
painter.setPen(Qt::SolidLine);
|
||||||
}
|
}
|
||||||
@ -863,7 +864,6 @@ void HexWidget::updateMetrics()
|
|||||||
shadowCursor.screenPos.moveTopLeft(itemArea.topLeft());
|
shadowCursor.screenPos.moveTopLeft(itemArea.topLeft());
|
||||||
} else {
|
} else {
|
||||||
cursor.screenPos.moveTopLeft(itemArea.topLeft());
|
cursor.screenPos.moveTopLeft(itemArea.topLeft());
|
||||||
|
|
||||||
shadowCursor.screenPos.setWidth(charWidth);
|
shadowCursor.screenPos.setWidth(charWidth);
|
||||||
shadowCursor.screenPos.moveTopLeft(asciiArea.topLeft());
|
shadowCursor.screenPos.moveTopLeft(asciiArea.topLeft());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user